l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
397 stars 70 forks source link

Movie not updated, but TV shows work flawlessly #170

Closed jodiekurnia closed 2 years ago

jodiekurnia commented 2 years ago

This is debug log of my problem. TV show work fine though, idk why there is a problem in movies.

2021-11-10 02:34:13,676 -    DEBUG -  AUTOSCAN [140303083681536]: Client '127.0.0.1' request dump:
{
    "downloadId": "B1801EBE85CD3D9BA23E5DB30B3CEEDACBB6333B", 
    "eventType": "Download", 
    "isUpgrade": false, 
    "movie": {
        "folderPath": "/movies/Wrath of the Titans (2012)", 
        "id": 1039, 
        "imdbId": "tt1646987", 
        "releaseDate": "2012-05-08", 
        "title": "Wrath of the Titans", 
        "tmdbId": 57165, 
        "year": 2012
    }, 
    "movieFile": {
        "id": 1779, 
        "indexerFlags": "G_Freeleech", 
        "path": "/downloads/torrents/deluge/incoming/Wrath.Of.The.Titans.2012.1080p.BluRay.x265-RARBG/Wrath.Of.The.Titans.2012.1080p.BluRay.x265-RARBG.mp4", 
        "quality": "Bluray-1080p", 
        "qualityVersion": 1, 
        "relativePath": "Wrath of the Titans (2012) - Bluray-1080p.mp4", 
        "releaseGroup": "RARBG", 
        "sceneName": "Wrath.Of.The.Titans.2012.1080p.BluRay.x265-RARBG", 
        "size": 1664654953
    }, 
    "remoteMovie": {
        "imdbId": "tt1646987", 
        "title": "Wrath of the Titans", 
        "tmdbId": 57165, 
        "year": 2012
    }
}
 2021-11-10 02:34:13,676 -     INFO -  AUTOSCAN [140303083681536]: Client '127.0.0.1' scan request for movie: '/movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4', event: 'Download'
 2021-11-10 02:34:13,677 -    DEBUG -     UTILS [140303083681536]: Mapping server path '/movies/' to '/data/Movies/'.
 2021-11-10 02:34:13,677 -    DEBUG -     UTILS [140303083681536]: Checking if root folder path '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' matches Plex Library root path in the Plex DB.
 2021-11-10 02:34:13,678 -    DEBUG -     UTILS [140303083681536]: Plex Library Section ID '1' matching root folder '/data/Movies' was found in the Plex DB.
 2021-11-10 02:34:13,678 -     INFO -  AUTOSCAN [140303083681536]: Using Section ID '1' for '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4'
 2021-11-10 02:34:13,748 -     INFO -  AUTOSCAN [140303083681536]: Added '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' to Plex Autoscan database.
 2021-11-10 02:34:13,748 -     INFO -  AUTOSCAN [140303083681536]: Proceeding with scan...
 2021-11-10 02:34:13,748 -     INFO -      PLEX [140303072855808]: Scan request from Radarr for '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4'.
 2021-11-10 02:34:13,749 -     INFO -      PLEX [140303072855808]: Sleeping for 180 seconds...
 2021-11-10 02:37:13,768 -    DEBUG -     UTILS [140303072855808]: Mapping file check path '/data/' to '/mnt/unionfs/Media/'.
 2021-11-10 02:37:13,768 -     INFO -      PLEX [140303072855808]: File '/mnt/unionfs/Media/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' exists on check 1 of 10.
 2021-11-10 02:37:13,768 -    DEBUG -     UTILS [140303072855808]: Using priority '1' for path '/data/Movies/Wrath of the Titans (2012)'
 2021-11-10 02:37:13,768 -    DEBUG -      PLEX [140303072855808]: Waiting for turn in the scan request backlog with priority '1'...
 2021-11-10 02:37:13,769 -     INFO -      PLEX [140303072855808]: Scan request is now being processed...
 2021-11-10 02:37:13,988 -     INFO -      PLEX [140303072855808]: Plex is available for media scanning - (Server Account: 'jodiekurnia@outlook.com')
 2021-11-10 02:37:13,988 -     INFO -      PLEX [140303072855808]: Running Plex Media Scanner for: /data/Movies/Wrath of the Titans (2012)
 2021-11-10 02:37:13,988 -    DEBUG -      PLEX [140303072855808]: docker exec -u plex -i plex bash -c 'export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib;/usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh --section 1 --directory '"'"'/data/Movies/Wrath of the Titans (2012)'"'"''
 2021-11-10 02:37:14,279 -     INFO -     UTILS [140303072855808]: ****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.24.5.5173-8dcc73a59/PLEX MEDIA SCANNER/85242945-d779-4d23-14a1b798-aea5e090.dmp
 2021-11-10 02:37:14,365 -     INFO -     UTILS [140303072855808]: ash: line 1:  1954 Segmentation fault      (core dumped) /usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh --section 1 --directory '/data/Movies/Wrath of the Titans (2012)'
 2021-11-10 02:37:14,368 -     INFO -      PLEX [140303072855808]: Finished scan!
 2021-11-10 02:37:14,373 -    DEBUG -      PLEX [140303072855808]: Removed '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' from Plex Autoscan database.
 2021-11-10 02:37:15,375 -     INFO -      PLEX [140303072855808]: There are 0 queued item(s) remaining.
 2021-11-10 02:37:15,375 -    DEBUG -      PLEX [140303072855808]: Checking deleted items count in 10 seconds...
 2021-11-10 02:37:25,385 -     INFO -      PLEX [140303072855808]: Emptying trash to clear 0 deleted items...
 2021-11-10 02:37:25,385 -     INFO -      PLEX [140303072855808]: Control file(s) are specified.
 2021-11-10 02:37:25,385 -     INFO -      PLEX [140303072855808]: Commence emptying of trash as control file(s) are present.
 2021-11-10 02:37:25,582 -     INFO -      PLEX [140303072855808]: Trash cleared for Section '1' after 1 of 5 tries.
 2021-11-10 02:37:25,582 -    DEBUG -      PLEX [140303072855808]: Sleeping for 10 seconds...
 2021-11-10 02:37:35,591 -    DEBUG -      PLEX [140303072855808]: Sending analysis request...
 2021-11-10 02:37:35,593 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 1 of 5 attempts...
 2021-11-10 02:37:45,603 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 2 of 5 attempts...
 2021-11-10 02:37:55,611 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 3 of 5 attempts...
 2021-11-10 02:38:05,619 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 4 of 5 attempts...
 2021-11-10 02:38:15,627 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 5 of 5 attempts...
 2021-11-10 02:38:25,635 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' after 5 tries
 2021-11-10 02:38:25,635 -  WARNING -      PLEX [140303072855808]: Aborting analysis of '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' because could not find any 'metadata_item_id' for it.
 2021-11-10 02:38:25,635 -    DEBUG -      PLEX [140303072855808]: Sleeping for 10 seconds...
 2021-11-10 02:38:35,643 -    DEBUG -      PLEX [140303072855808]: Validating match for 'Wrath of the Titans' (IMDB ID: tt1646987)...
 2021-11-10 02:38:35,644 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 1 of 5 attempts...
 2021-11-10 02:38:45,651 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 2 of 5 attempts...
 2021-11-10 02:38:55,661 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 3 of 5 attempts...
 2021-11-10 02:39:05,671 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 4 of 5 attempts...
 2021-11-10 02:39:15,679 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' in 5 of 5 attempts...
 2021-11-10 02:39:25,687 -    ERROR -      PLEX [140303072855808]: Could not locate record in 'media_parts' where 'file' = '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' after 5 tries.
 2021-11-10 02:39:25,687 -    ERROR -      PLEX [140303072855808]: Aborting match of '/data/Movies/Wrath of the Titans (2012)/Wrath of the Titans (2012) - Bluray-1080p.mp4' as could not find 'metadata_item_id'.
arthuraltino commented 2 years ago

Exactly same thing here, but I'm using windows

jodiekurnia commented 2 years ago

I will closed this issue, since it seems Plex Scanner being stupid.. @arthuraltino if you still experiencing the issue, please remove any NFo file within the folder of movies, if you're like me (using plex + jellyfin) just login to jellyfin and disable nFo metadata options. it will fixed the issue.

Good Luck! :)

enz1ey commented 2 years ago

I'm still having this same issue. I went through and deleted any .nfo files, but it's still happening. The only file in the target folder aside from the movie is a .srt file.

****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.25.2.5319-c43dc0277/PLEX MEDIA SCANNER/28627815-29b1-46bf-a63aae96-955015b3.dmp

Feb 14 11:35:20 ns560642 scan.py[2396]: 2022-02-14 11:35:20,452 - INFO - UTILS [140256133224192]: ash: line 1: 19458 Segmentation fault (core dumped)