pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

Medusa download to main folder not to exact tv show folder #8277

Closed PrzemekSkw closed 4 years ago

PrzemekSkw commented 4 years ago

I install Medusa today on my Ubuntu laptop. I sync my library with Emby server folder. I have my shows in folder /mnt/nas/Video/Seriale [Seriale means TV Shows] and Medusa discover my shows (but have some problem with few shows name with "." for example Stranger.Things) but when it start downloading it download to folder /mnt/nas/Video/Seriale and make folders for each episode but not to specific folder when I have that episode /mnt/nas/Video/Seriale/Stranger.Things/. Can somebody help me how to set to download correctly. Second thing is Medusa don't download some series. I have set to wanted but Medusa does nothing. Medusa see that show folder, see first episode that I download earlier but don't download another episodes: Zrzut ekranu z 2020-07-31 07-39-48

Regards Przemek

p0psicles commented 4 years ago

So you configure a root folder. Thats your Seriale folder. Then you need to use medusa periodic postprocessing or an external script like nzbToMedia (works also with torrent clients). The postprocessing will move the episode into the shows folder.

p0psicles commented 4 years ago

The dot should be replaced with a space when you add the show. So that's weird.

PrzemekSkw commented 4 years ago

So you configure a root folder. Thats your Seriale folder. Then you need to use medusa periodic postprocessing or an external script like nzbToMedia (works also with torrent clients). The postprocessing will move the episode into the shows folder.

Hi, I have root folder /mnt/nas/Video/Seriale and now can You tell me what to do in post-processing because I don't know what options to check?

p0psicles commented 4 years ago

https://github.com/pymedusa/Medusa/wiki/Post-Processing

PrzemekSkw commented 4 years ago

https://github.com/pymedusa/Medusa/wiki/Post-Processing

Should I set post-processing Dir to /mnt/nas/downloads?

p0psicles commented 4 years ago

That's up to you. Recommended is to have an incomplete and complete folder. But there are many options. So that's up to.

PrzemekSkw commented 4 years ago

That's up to you. Recommended is to have an incomplete and complete folder. But there are many options. So that's up to.

I want to have complete episodes in folders I already have with specific tv show. I set now root folder to /mnt/nas/Video/Seriale/ Transmission download folder to /mnt/nas/downloads and post-procesing dir to /mnt/nas/downloads. Is that OK?

p0psicles commented 4 years ago

Yes sounds about right. Make sure that your rights for the folders are on point. Like transmission user writes files. And medusa user should also have write access to the shows folder. And write access to the downloads folder.

PrzemekSkw commented 4 years ago

Yes sounds about right. Make sure that your rights for the folders are on point. Like transmission user writes files. And medusa user should also have write access to the shows folder. And write access to the downloads folder.

I add medusa user to my user group with sudo usermod -a -G przemek medusa. Also in nautilus I add that two folder permission for everyone. I still have issue that Medusa don't do nothing now. It see my shows, add new folder from trakt list but don't download episodes.

PrzemekSkw commented 4 years ago

@p0psicles OK, I think now it working and downloading shows I added before install Medusa but don't download some episodes from my trakt.tv list.

2020-07-31 21:09:10 INFO    POSTPROCESSOR :: [d9c31da] Post-processing completed.
2020-07-31 21:09:09 INFO    SEARCHQUEUE-DAILY-SEARCH :: [d9c31da] No needed episodes found
2020-07-31 21:08:54 WARNING SHOWQUEUE-ADD :: [d9c31da] 367232: Unable to look up the show in None using id 367232 on TVDBv2. Delete metadata files from the folder and try adding it again.
With error: Show search failed in getting a result with reason: HTTPError
404 Client Error: Not Found for url: https://api.thetvdb.com/series/367232 (404)
2020-07-31 21:08:54 INFO    SHOWQUEUE-ADD :: [d9c31da] TVDBv2: {'language': 'en', 'use_zip': True, 'session': <medusa.session.core.MedusaSession object at 0x7f527ffec5b0>, 'cache': '/opt/medusa/cache/indexers/TVDBv2'}
2020-07-31 21:08:54 INFO    SHOWQUEUE-ADD :: [d9c31da] Starting to add show by Indexer Id: 367232
2020-07-31 21:08:52 INFO    TRAKTCHECKER :: [d9c31da] Adding show 'The Stand' using indexer: 'tvdb' and ID: 367232
2020-07-31 21:08:52 WARNING TRAKTCHECKER :: [d9c31da] Invalid series id: tt1831804
2020-07-31 21:08:51 INFO    TRAKTCHECKER :: [d9c31da] Adding show 'Black Mirror (PL)' to Trakt watchlist
2020-07-31 21:08:51 INFO    SHOWQUEUE-REMOVE-SHOW :: [d9c31da] 47665: Removing Black Sails
2020-07-31 21:08:51 INFO    SEARCHQUEUE-DAILY-SEARCH :: [d9c31da] Using daily search providers
2020-07-31 21:08:51 INFO    SEARCHQUEUE-DAILY-SEARCH :: [d9c31da] Beginning daily search for new episodes
2020-07-31 21:08:51 INFO    TRAKTCHECKER :: [d9c31da] Show 'Black Sails' has being queued to be removed from Medusa library
2020-07-31 21:08:48 INFO    CHECKVERSION :: [d9c31da] Checking for updates using GitHub Updater
2020-07-31 21:08:47 INFO    FINDSUBTITLES :: [d9c31da] No subtitles to download
2020-07-31 21:08:47 INFO    FINDSUBTITLES :: [d9c31da] Checking for missed subtitles
2020-07-31 21:08:35 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] No needed episodes found during backlog search for: Brave New World (2020)
2020-07-31 21:07:54 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Rarbg :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:49 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Eztv :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:45 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Zooqle :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:45 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Torrentz2 :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:41 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: BTDB :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:37 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: TorrentGalaxy :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:29 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: LimeTorrents :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: 1337x :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Using backlog search providers
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Building internal name cache for Brave New World (2020)
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Finished processing 3343 scene exceptions.
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Updating exception_cache and exception_season_cache
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Updated scene exceptions.
2020-07-31 21:07:18 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Checking for scene exceptions updates from AniDB
2020-07-31 21:07:17 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Checking for XEM scene exceptions updates for TVDBv2
2020-07-31 21:07:17 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Beginning backlog search for: Brave New World (2020)
2020-07-31 21:00:39 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] No needed episodes found during backlog search for: Brave New World (2020)
2020-07-31 21:00:34 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Eztv :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:00:29 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: TorrentGalaxy :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 21:00:29 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Torrentz2 :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 20:59:48 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Rarbg :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 20:59:37 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: 1337x :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 20:59:34 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: Zooqle :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 20:59:30 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: BTDB :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 20:59:23 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: LimeTorrents :: [d9c31da] Performing episode search for Brave New World (2020)
2020-07-31 20:59:23 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Using backlog search providers
2020-07-31 20:59:23 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Building internal name cache for Brave New World (2020)
2020-07-31 20:59:23 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Finished processing 3342 scene exceptions.
2020-07-31 20:59:23 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Updating exception_cache and exception_season_cache
2020-07-31 20:59:23 INFO    FORCEDSEARCHQUEUE-BACKLOG-359606 :: [d9c31da] Beginning backlog search for: Brave New World (2020)
PrzemekSkw commented 4 years ago

OK, I must manual serch for some episodes, I don't know why but it works. Thank You for help.

p0psicles commented 4 years ago

Probably a quality mismatch

PrzemekSkw commented 4 years ago

Hi @p0psicles, sorry to bother You again but my Medusa suddenly stop postprocessing and I don't know why. Torrents are seeding to ratio I choose and then stop but Medusa don't copy series to root folder.

2020-08-11 19:21:28 INFO    POSTPROCESSOR :: [d9c31da] /mnt/nas/downloads: Sync files found
2020-08-11 19:21:28 INFO    POSTPROCESSOR :: [d9c31da] I did encounter some unprocessable items: 
2020-08-11 19:21:28 INFO    POSTPROCESSOR :: [d9c31da] Post-processing completed.
2020-08-11 19:21:28 INFO    POSTPROCESSOR :: [d9c31da] Skipping post-processing for folder: /mnt/nas/downloads
2020-08-11 19:21:28 INFO    POSTPROCESSOR :: [d9c31da] Found temporary sync files in folder: /mnt/nas/downloads
2020-08-11 19:11:30 INFO    SEARCHQUEUE-DAILY-SEARCH :: [d9c31da] No needed episodes found
2020-08-11 19:11:30 INFO    SEARCHQUEUE-DAILY-SEARCH :: [d9c31da] Beginning daily search for new episodes
2020-08-11 19:11:27 INFO    POSTPROCESSOR :: [d9c31da] /mnt/nas/downloads: Sync files found
2020-08-11 19:11:27 INFO    POSTPROCESSOR :: [d9c31da] I did encounter some unprocessable items: 
2020-08-11 19:11:27 INFO    POSTPROCESSOR :: [d9c31da] Post-processing completed.
2020-08-11 19:11:27 INFO    POSTPROCESSOR :: [d9c31da] Skipping post-processing for folder: /mnt/nas/downloads
2020-08-11 19:11:27 INFO    POSTPROCESSOR :: [d9c31da] Found temporary sync files in folder: /mnt/nas/downloads
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: mindhunter.s02e06.720p.web.x264-skgtv[eztv].mkv
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: mindhunter.s02e04.720p.web.x264-skgtv[eztv].mkv
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: mindhunter.s02e08.720p.web.x264-skgtv[eztv].mkv
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: High.Seas.S02E01.Casandra.1080p.NF.WEB-DL.DDP5.1.H.264-SPiRiT[eztv.io].mkv
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: mindhunter.s02e02.720p.web.x264-skgtv[eztv].mkv
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: Cursed.2020.S01E01.720p.WEB.H264-GHOSTS[eztv.io].mkv
2020-08-11 19:11:23 INFO    TORRENTCHECKER :: [d9c31da] Torrent not yet post-processed. Skipping: mindhunter.s02e09.720p.web.x264-skgtv[eztv].mkv
PrzemekSkw commented 4 years ago

I also try manual postprocesing but don' help:

Processing path: /mnt/nas/downloads
Found temporary sync files in folder: /mnt/nas/downloads
Skipping post-processing for folder: /mnt/nas/downloads
Post-processing completed.
I did encounter some unprocessable items:
/mnt/nas/downloads: Sync files found
p0psicles commented 4 years ago

It finds sync files. Meaning it's an unfinished torrent. Or it is in the process of copying.

Do you have the incomplete and complete (from where you postprocess) separated?

PrzemekSkw commented 4 years ago

@p0psicles Now I make folders like that:

PrzemekSkw commented 4 years ago

Now when I restart Medusa it don't work again so I change to:

In post-processing tab: post-processing dir: /mnt/nas/downloads [processing method: copy] In torrent search tab:

Now it works when I manualy start postprocessing but don't remove torrent from transmission and downloads folder. I set permissions for my folders for everyone:

lusia@lusia-laptop:/mnt/nas$ ls -l
razem 156
drwxrwxrwx  2 lusia         lusia     4096 sie 11 21:15 downloads
drwxrwxr-x 64 lusia         lusia    12288 sie  2 08:31 Music
drwxrwxrwx  5 avahi-autoipd mlocate   4096 sie  4 19:48 mysql
drwxr-x---  9 www-data      www-data  4096 sie 10 03:30 nextcloud_data
drwxrwxr-x  3 lusia         lusia     4096 mar 28 12:06 Pictures
drwxrwxrwx  2 lusia         lusia     4096 sie 11 20:00 torrents
drwxrwxrwx  4 lusia         lusia     4096 mar 21 17:52 Video
lusia@lusia-laptop:/mnt/nas/Video$ ls -l
razem 24
drwxrwxrwx 154 lusia lusia 20480 sie  9 22:22 Filmy
drwxrwxrwx 109 lusia lusia  4096 sie 10 20:38 Seriale

I have checked: Remove torrent from client (also torrent data) when provider ratio is reached

@p0psicles can You tell me where I have make mistake?

PrzemekSkw commented 4 years ago

Sometimes I see that error but don't know that is related:


2020-08-11 21:16:53 WARNING  Thread_0 :: [d9c31da] EMBY: Warning: Unable to contact Emby at http://http://192.168.0.24:8096/emby/Library/Series/Updated: Error: MaxRetryError("HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //192.168.0.24:8096/emby/Library/Series/Updated?tvdbid=328708 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7704171820>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))")
2020-08-11 21:15:47 WARNING  Thread_0 :: [d9c31da] EMBY: Warning: Unable to contact Emby at http://http://192.168.0.24:8096/emby/Library/Series/Updated: Error: MaxRetryError("HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //192.168.0.24:8096/emby/Library/Series/Updated?tvdbid=369950 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77040b6cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))")```