JordyAlkema / Youtube-DL-Agent.bundle

A plex metadata agent for Youtube-DL downloads
119 stars 14 forks source link

More instructions? #1

Open OmgImAlexis opened 4 years ago

OmgImAlexis commented 4 years ago

Not sure if I'm just using this incorrectly or what the issue is but I'm not seeing any difference between this and the personal media agent. If anything this seems to work worse.

Using the youtube-dl format you suggest I tried (https://www.youtube.com/watch?v=UMp-IF6uPkk&list=PLTzMGnJjrsSy6H8uiX3XKWtUhhj2Vilw1) which I had hoped would give me the playlist as a show or atleast as a season under ramsay as the show but instead I get this.

Screen Shot 2020-01-07 at 2 41 47 pm

This is the full command I'm using.

docker run --rm --user $(id -u):$(id -g) -v /mnt/user/Youtube:/data vimagick/youtube-dl \
--playlist-reverse --download-archive /data/downloaded.txt -i \
--batch-file /data/channels.txt \
--add-metadata --write-info-json --write-all-thumbnails \
--embed-subs --all-subs --write-description --write-annotation \
-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' \
-o "%(uploader)s [%(uploader_id)s]/%(title)s[%(id)s].%(ext)s"

Screen Shot 2020-01-07 at 2 47 51 pm

Where as if I use this command it works fine. Notice the last line.

docker run --rm --user $(id -u):$(id -g) -v /mnt/user/Youtube:/data vimagick/youtube-dl \
--playlist-reverse --download-archive /data/downloaded.txt -i \
--batch-file /data/channels.txt \
--add-metadata --write-info-json --write-all-thumbnails \
--embed-subs --all-subs --write-description --write-annotation \
-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' \
-o "%(uploader)s/%(playlist)s/%(playlist)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s""
OmgImAlexis commented 4 years ago

In saying that adding more than 1 playlist from a single channel on the second version causes weird things with plex where only 1 episode is now showing. Haven't tried it with your format yet. This seems like an agent issue though?

Screen Shot 2020-01-07 at 2 53 42 pm

root@Tower:/mnt/user/Youtube# tree .
.
├── Gordon Ramsay
│   ├── Ramsay in 10
│   │   ├── Ramsay in 10 - S01E1 - Gordon Ramsay's Perfect Cereal French Toast Challenge _ Ramsay in 10 [WqY9JYZGzxk].annotations.xml
│   │   ├── Ramsay in 10 - S01E1 - Gordon Ramsay's Perfect Cereal French Toast Challenge _ Ramsay in 10 [WqY9JYZGzxk].description
│   │   ├── Ramsay in 10 - S01E1 - Gordon Ramsay's Perfect Cereal French Toast Challenge _ Ramsay in 10 [WqY9JYZGzxk].info.json
│   │   ├── Ramsay in 10 - S01E1 - Gordon Ramsay's Perfect Cereal French Toast Challenge _ Ramsay in 10 [WqY9JYZGzxk].jpg
│   │   ├── Ramsay in 10 - S01E1 - Gordon Ramsay's Perfect Cereal French Toast Challenge _ Ramsay in 10 [WqY9JYZGzxk].mp4
│   │   ├── Ramsay in 10 - S01E2 - Gordon Ramsay Challenges Hell’s Kitchen Contestant To A Holiday Leftover Dish _ Ramsay in 10 [_3ZayJoxuqI].annotations.xml
│   │   ├── Ramsay in 10 - S01E2 - Gordon Ramsay Challenges Hell’s Kitchen Contestant To A Holiday Leftover Dish _ Ramsay in 10 [_3ZayJoxuqI].description
│   │   ├── Ramsay in 10 - S01E2 - Gordon Ramsay Challenges Hell’s Kitchen Contestant To A Holiday Leftover Dish _ Ramsay in 10 [_3ZayJoxuqI].info.json
│   │   ├── Ramsay in 10 - S01E2 - Gordon Ramsay Challenges Hell’s Kitchen Contestant To A Holiday Leftover Dish _ Ramsay in 10 [_3ZayJoxuqI].jpg
│   │   ├── Ramsay in 10 - S01E2 - Gordon Ramsay Challenges Hell’s Kitchen Contestant To A Holiday Leftover Dish _ Ramsay in 10 [_3ZayJoxuqI].mp4
│   │   ├── Ramsay in 10 - S01E3 - Gordon Ramsay Challenges Hell's Kitchen Contestant For Gourmet Ramen _ Ramsay in 10 [Kba6MAlEv3o].annotations.xml
│   │   ├── Ramsay in 10 - S01E3 - Gordon Ramsay Challenges Hell's Kitchen Contestant For Gourmet Ramen _ Ramsay in 10 [Kba6MAlEv3o].description
│   │   ├── Ramsay in 10 - S01E3 - Gordon Ramsay Challenges Hell's Kitchen Contestant For Gourmet Ramen _ Ramsay in 10 [Kba6MAlEv3o].info.json
│   │   ├── Ramsay in 10 - S01E3 - Gordon Ramsay Challenges Hell's Kitchen Contestant For Gourmet Ramen _ Ramsay in 10 [Kba6MAlEv3o].jpg
│   │   └── Ramsay in 10 - S01E3 - Gordon Ramsay Challenges Hell's Kitchen Contestant For Gourmet Ramen _ Ramsay in 10 [Kba6MAlEv3o].mp4
│   └── Scrambled with...
│       ├── Scrambled with... - S01E1 - Gordon Ramsay Cooks Breakfast Tacos with Aarón Sanchez _ Scrambled [fe-tkf4cqFU].annotations.xml
│       ├── Scrambled with... - S01E1 - Gordon Ramsay Cooks Breakfast Tacos with Aarón Sanchez _ Scrambled [fe-tkf4cqFU].description
│       ├── Scrambled with... - S01E1 - Gordon Ramsay Cooks Breakfast Tacos with Aarón Sanchez _ Scrambled [fe-tkf4cqFU].info.json
│       ├── Scrambled with... - S01E1 - Gordon Ramsay Cooks Breakfast Tacos with Aarón Sanchez _ Scrambled [fe-tkf4cqFU].jpg
│       ├── Scrambled with... - S01E1 - Gordon Ramsay Cooks Breakfast Tacos with Aarón Sanchez _ Scrambled [fe-tkf4cqFU].mp4
│       ├── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].annotations.xml
│       ├── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].description
│       ├── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].f137.mp4
│       ├── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].f140.m4a
│       ├── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].info.json
│       ├── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].jpg
│       └── Scrambled with... - S01E2 - Can Zedd Remix A Breakfast Sandwich With Gordon Ramsay _ Scrambled [rpvFXdxaK7o].temp.mp4
├── _
├── channels.txt
└── downloaded.txt

3 directories, 30 files
JordyAlkema commented 4 years ago

Hi, i'll test it with the same playlists as you when I get home. But just to make sure, did you install and select the Absolute Series Scanner as the Scanner? At first glance this looks like a scanner issue to me, the scanner is responsible for sorting items in the correct season and detecting duplicate episodes.

Additionally, It will not be possible to add a season name (limitation of Plex), I could take a look at if there is another way to group playlists.

OmgImAlexis commented 4 years ago

Yes I picked that. Should I try and delete and recreate the library? I had changed over an existing library and then added the show. I figured it would have picked it up fine but maybe not?

Okay. Maybe we could add the shows and then have a collection created that adds each show?

Triorama commented 3 years ago

Maybe you shouldnt use the Uploaders directory and Youse Playlist directory instead. This way you will have a show named like the Playlist. The uploaders name will be in Studios.

This is similar to how Plex handles TV Shows. You dont put them in a directory named by the director but named like the shows Name.

OmgImAlexis commented 3 years ago

Maybe you shouldnt use the Uploaders directory and Youse Playlist directory instead. This way you will have a show named like the Playlist. The uploaders name will be in Studios.

This is similar to how Plex handles TV Shows. You dont put them in a directory named by the director but named like the shows Name.

Only issue with that is organisation is gonna be trash. 😔

mzayarnyuk commented 1 year ago

still not cleaqr how to use that thing - better create my own plugin....