update trailer dl documentation and requirements
This commit is contained in:
parent
ac711f6db6
commit
03510b183e
21
README.md
21
README.md
|
@ -23,12 +23,23 @@ Episodes are named in this style, a more flexible solution is in pending:
|
||||||
## db_export
|
## db_export
|
||||||
Export the library to csv files. Calles the Emby API to get a list of movies and episodes and exports this to a convenient set ov CSV files.
|
Export the library to csv files. Calles the Emby API to get a list of movies and episodes and exports this to a convenient set ov CSV files.
|
||||||
|
|
||||||
|
## trailers
|
||||||
|
Downloading trailers from links provided from emby and move them into the movie folder.
|
||||||
|
Trailers are named in this style, a more flexible solution is in pending:
|
||||||
|
**{movie-name} {Year}_{youtube-id}_trailer.mkv**
|
||||||
|
|
||||||
## setup
|
## setup
|
||||||
### install
|
### install
|
||||||
These are the none standard Python libraries in use in this project:
|
These are the none standard Python libraries in use in this project:
|
||||||
* [requests](https://pypi.org/project/requests/)
|
* [requests](https://pypi.org/project/requests/)
|
||||||
* Install on Arch: `sudo pacman -Qi python-request`
|
* Install on Arch: `sudo pacman -Qi python-request`
|
||||||
* Install with pip `pip install request`
|
* Install with pip: `pip install request`
|
||||||
|
* [trash-cli](https://pypi.org/project/trash-cli/)
|
||||||
|
* Install on Arch: `sudo pacman -S trash-cli`
|
||||||
|
* Install with pip: `pip install trash-cli`
|
||||||
|
* [youtube-dl](https://pypi.org/project/youtube_dl/)
|
||||||
|
* Install on Arch: `sudo pacman -S youtube-dl`
|
||||||
|
* Install with pip: `pip install youtube_d`
|
||||||
* curses
|
* curses
|
||||||
* Is already installed on most linux based systems.
|
* Is already installed on most linux based systems.
|
||||||
* On Windows: `pip install windows-curses`
|
* On Windows: `pip install windows-curses`
|
||||||
|
@ -43,7 +54,11 @@ Duplicate the config.sample file to a file named *config* and set the following
|
||||||
* `ext`: A space separated list of valid media file extensions to easily filter out none media related files.
|
* `ext`: A space separated list of valid media file extensions to easily filter out none media related files.
|
||||||
* `log_path`: Path to a folder to output all renaming done to keep track and check for any errors and safe csv files.
|
* `log_path`: Path to a folder to output all renaming done to keep track and check for any errors and safe csv files.
|
||||||
* `movie_db_api`: Register and get your themoviedb.com **API Key (v3 auth)** acces from [here](https://www.themoviedb.org/settings/api).
|
* `movie_db_api`: Register and get your themoviedb.com **API Key (v3 auth)** acces from [here](https://www.themoviedb.org/settings/api).
|
||||||
Emby integration:
|
|
||||||
|
*Emby integration:*
|
||||||
* `emby_url`: url where your emby instance is reachable
|
* `emby_url`: url where your emby instance is reachable
|
||||||
* `emby_user_id`: user id of your emby user
|
* `emby_user_id`: user id of your emby user
|
||||||
* `emby_api_key`: api key for your user on emby
|
* `emby_api_key`: api key for your user on emby
|
||||||
|
|
||||||
|
*Trailer download:*
|
||||||
|
Arguments under the [ydl_opts] section will get passed in to youtube-dl. Check out the documentation for details.
|
|
@ -11,4 +11,10 @@ movie_db_api = aaaabbbbccccdddd1111222233333444
|
||||||
[emby]
|
[emby]
|
||||||
emby_url = http://media.local:8096/emby
|
emby_url = http://media.local:8096/emby
|
||||||
emby_user_id = aaaa1111bbbb2222cccc3333dddd4444
|
emby_user_id = aaaa1111bbbb2222cccc3333dddd4444
|
||||||
emby_api_key = eeee5555ffff6666gggg7777hhhh8888
|
emby_api_key = eeee5555ffff6666gggg7777hhhh8888
|
||||||
|
|
||||||
|
[ydl_opts]
|
||||||
|
format = bestvideo[height<=1080]+bestaudio/best[height<=1080]
|
||||||
|
merge_output_format = mkv
|
||||||
|
external_downloader = aria2c
|
||||||
|
geo_bypass = True
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
request
|
request
|
||||||
|
trash-cli
|
||||||
|
youtube_dl
|
||||||
|
|
|
@ -179,3 +179,4 @@ def main(config):
|
||||||
if downloaded:
|
if downloaded:
|
||||||
new_trailers = archive(config)
|
new_trailers = archive(config)
|
||||||
print(f'downloaded {len(new_trailers)} new trailers')
|
print(f'downloaded {len(new_trailers)} new trailers')
|
||||||
|
sleep(2)
|
||||||
|
|
Loading…
Reference in New Issue