whatdaybob / sonarr_youtubedl

A Sonarr companion script to allow the automatic downloading of web series normally not available for Sonarr to search for. Using Youtube-DL it allows you to download your webseries from the list of supported sites.
106 stars 34 forks source link

Sane folder mapping #31

Open tordenflesk opened 2 years ago

tordenflesk commented 2 years ago

SONARR Root Folder: /DATA03/media/tv [ Docker mapping: /srv/dev-disk-by-uuid-00a91771-1e9f-451c-aaf9-456977460ae9:/DATA03 ]

when mapped like this in your docker: /srv/dev-disk-by-uuid-00a91771-1e9f-451c-aaf9-456977460ae9/media:/sonarr_root files end up here: /srv/dev-disk-by-uuid-00a91771-1e9f-451c-aaf9-456977460ae9/media/DATA03/media/tv/

As far as I can tell there's no sane way of mapping directly to /tv and not appending the Root Folder.

tordenflesk commented 2 years ago

And is there a way to filter by say video title. I'm only interested in certain series on a channel and they're not being put in playlists.

whatdaybob commented 2 years ago

@tordenflesk looks like your mounting it a folder too deep. Looks to me that DATA03 is the same as /srv/dev-disk-by-uuid-00a91771-1e9f-451c-aaf9-456977460ae9 but its not matching up. Can you show me your docker-compose for this.

You might be able to do it with the regex replace depending on what the channel names the videos and if they are consistent with the identification of that series.

In that case you may be able to use the match of ^ and the replace of seriesname $& to change sonarr to prefix and match it. Not tested it personally as it uses regex backreferences.

Maybe sling what series your trying to achieve a DL of and I can look and see if its possible.

darkf3n1x commented 6 months ago

Example sonarr: /mnt/media/tv:/tv

Example sonarr_youtubedl /mnt/media/tv:/sonarr_root

The above config should drop the files in properly without adding another subdirectory /tv. We shouldn't have to map the whole root media directory to this container.