mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2024-12-05 01:40:12 +00:00
Merge branch 'master' into pr_test_29
This commit is contained in:
commit
6d7af2698e
@ -60,7 +60,7 @@ Mount the `/youtube` folder from Tube Archivist also in this container at `/yout
|
|||||||
### Manual trigger
|
### Manual trigger
|
||||||
For an initial import or for other irregular occasions, trigger the library scan from outside the container, e.g.:
|
For an initial import or for other irregular occasions, trigger the library scan from outside the container, e.g.:
|
||||||
```bash
|
```bash
|
||||||
docker exec -it tubearchivist-jf python main.py
|
docker exec tubearchivist-jf python main.py
|
||||||
```
|
```
|
||||||
|
|
||||||
### Auto trigger
|
### Auto trigger
|
||||||
|
@ -45,7 +45,9 @@ class Library:
|
|||||||
|
|
||||||
def _get_all_series(self) -> dict:
|
def _get_all_series(self) -> dict:
|
||||||
"""get all shows indexed in jf"""
|
"""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)
|
all_shows: dict = Jellyfin().get(path)
|
||||||
|
|
||||||
return all_shows
|
return all_shows
|
||||||
@ -69,7 +71,9 @@ class Library:
|
|||||||
|
|
||||||
def refresh_collection(self, collection_id: str) -> None:
|
def refresh_collection(self, collection_id: str) -> None:
|
||||||
"""trigger collection refresh"""
|
"""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)
|
Jellyfin().post(path, False)
|
||||||
|
|
||||||
for _ in range(12):
|
for _ in range(12):
|
||||||
@ -206,7 +210,9 @@ class Show:
|
|||||||
def _wait_for_season(self, expected_season: str) -> None:
|
def _wait_for_season(self, expected_season: str) -> None:
|
||||||
"""wait for season to be created in JF"""
|
"""wait for season to be created in JF"""
|
||||||
jf_id: str = self.show["Id"]
|
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)
|
Jellyfin().post(path, False)
|
||||||
for _ in range(12):
|
for _ in range(12):
|
||||||
all_existing: set[str] = set(self._get_existing_seasons())
|
all_existing: set[str] = set(self._get_existing_seasons())
|
||||||
|
Loading…
Reference in New Issue
Block a user