lardbit / nefarious

Web application for automatically downloading TV & Movies (w/ VPN)
https://lardbit.github.io/nefarious/
GNU General Public License v3.0
1.04k stars 76 forks source link

Feature Request/import issue #304

Closed frostbyte71901 closed 2 months ago

frostbyte71901 commented 3 months ago

I have alot of data that I have over time have added to my library manually, when I try to import my tv library or my movie library, it seems to just add some of them. it would be nice to have a way to tie it into en existing library from either jellyfin or plex. if there exists a way would you please advise on how to do so

lardbit commented 3 months ago

I assume you're importing your existing TV and Movies library via the buttons on the nefarious Settings page? If it's only adding some, I do know of one issue that could affect that. Only one "import" process is allowed at a time for this, so you'd need to first import TV, wait a bit, then import Movies. I need to fix this.

If you've tried that and it's still not adding everything, please send me the logs from docker-compose logs celery (or clicking the logs button in the Settings page) and maybe I'll realize what's happening.

frostbyte71901 commented 3 months ago

here is the log from my latest attempt. I got this log from portainer _nefarious_celery_1_logs.txt and this one is the last attempt after a restarted transmission and changed some dns settings _nefarious_celery_1_logs(2).txt

lardbit commented 3 months ago

I think nefarious is having trouble matching some of these due to the file names.

I cherry picked this one:

INFO 2024-08-02 05:47:50,366 base 25 138406783797056 [NO_MATCH_MEDIA] No media match for title "avatar tlok" and file "/downloads/tv/The Legend of Korra (2012)/Book 4a - Balance (2014)/Avatar (TLoK) - S04 E01 - After All These Years (1080p - BluRay).mp4"

nefarious uses The Movie Database for TV/Movie metadata for matching and in this case, it's trying to search Avatar (TLoK) but I think it's actually supposed to be titled The Legend of Korra (https://www.themoviedb.org/tv/33880-the-legend-of-korra).

I renamed that file to The Legend of Korra - S04 E01 - After All These Years (1080p - BluRay).mp4 and did a mock import and it matched correctly.

$ ls -1 /tmp/tv/The\ Legend\ of\ Korra\ \(2012\)/Book\ 4a\ -\ Balance\ \(2014\)/
'Avatar (TLoK) - S04 E01 - After All These Years (1080p - BluRay).mp4'
'The Legend of Korra - S04 E01 - After All These Years (1080p - BluRay).mp4'

$ python manage.py import-media tv
INFO  2024-08-05 20:31:10,480  base 324463  127642647617984  Scanning /tmp/tv/
INFO  2024-08-05 20:35:12,964  base 324611  129130398589376  [MATCH] Saved media "The Legend of Korra - S04E01" from file "/tmp/tv/The Legend of Korra (2012)/Book 4a - Balance (2014)/The Legend of Korra - S04 E01 - After All These Years (1080p - BluRay).mp4"
INFO  2024-08-05 20:31:10,483  base 324463  127642647617984  [NO_MATCH_MEDIA] No media match for title "avatar tlok" and file "/tmp/tv/The Legend of Korra (2012)/Book 4a - Balance (2014)/Avatar (TLoK) - S04 E01 - After All These Years (1080p - BluRay).mp4"
INFO  2024-08-05 20:31:10,483  base 324463  127642647617984  Scanned 2 files

Let me know if you see other types of issues, though, and we can try and work through them.

lardbit commented 2 months ago

Closed due to inactivity.