mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2025-07-02 23:31:11 +00:00
Compare commits
No commits in common. "3e0e13e18e70bbebdfc3d96e0797e829e713eeb5" and "eb4558569ce18a1120232cbd51e07cdb37e3c16e" have entirely different histories.
3e0e13e18e
...
eb4558569c
@ -7,12 +7,12 @@ ENV PATH=/root/.local/bin:$PATH
|
||||
RUN if [ "$INSTALL_DEBUG" ] ; then \
|
||||
apt-get -y update && apt-get -y install --no-install-recommends \
|
||||
vim htop bmon net-tools iputils-ping procps curl \
|
||||
&& pip install ipython \
|
||||
&& pip install --user ipython \
|
||||
; fi
|
||||
|
||||
# install requirements
|
||||
COPY ./requirements.txt /requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install --user -r requirements.txt
|
||||
|
||||
COPY app /app
|
||||
WORKDIR app
|
||||
|
@ -60,7 +60,7 @@ Mount the `/youtube` folder from Tube Archivist also in this container at `/yout
|
||||
### Manual trigger
|
||||
For an initial import or for other irregular occasions, trigger the library scan from outside the container, e.g.:
|
||||
```bash
|
||||
docker exec tubearchivist-jf python main.py
|
||||
docker exec -it tubearchivist-jf python main.py
|
||||
```
|
||||
|
||||
### Auto trigger
|
||||
|
@ -45,9 +45,7 @@ class Library:
|
||||
|
||||
def _get_all_series(self) -> dict:
|
||||
"""get all shows indexed in jf"""
|
||||
path: str = (
|
||||
f"Items?Recursive=true&IncludeItemTypes=Series&fields=ParentId,Path&ParentId={self.yt_collection}" # noqa: E501
|
||||
)
|
||||
path: str = f"Items?Recursive=true&IncludeItemTypes=Series&fields=ParentId,Path&ParentId={self.yt_collection}" # noqa: E501
|
||||
all_shows: dict = Jellyfin().get(path)
|
||||
|
||||
return all_shows
|
||||
@ -71,9 +69,7 @@ class Library:
|
||||
|
||||
def refresh_collection(self, collection_id: str) -> None:
|
||||
"""trigger collection refresh"""
|
||||
path: str = (
|
||||
f"Items/{collection_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
|
||||
)
|
||||
path: str = f"Items/{collection_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
|
||||
Jellyfin().post(path, False)
|
||||
|
||||
for _ in range(12):
|
||||
@ -210,9 +206,7 @@ class Show:
|
||||
def _wait_for_season(self, expected_season: str) -> None:
|
||||
"""wait for season to be created in JF"""
|
||||
jf_id: str = self.show["Id"]
|
||||
path: str = (
|
||||
f"Items/{jf_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
|
||||
)
|
||||
path: str = f"Items/{jf_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
|
||||
Jellyfin().post(path, False)
|
||||
for _ in range(12):
|
||||
all_existing: set[str] = set(self._get_existing_seasons())
|
||||
|
Loading…
x
Reference in New Issue
Block a user