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

Music isn't being added to the library due to media_parts errors #141

Open titooo7 opened 4 years ago

titooo7 commented 4 years ago

I added "flac" to the FILE_EXTENSION_LIST section and "audio" to MIME_TYPE_LIST section of config.json

The files seem to be scanned based on the log but it shows some errors. The music doesn't get added to my Plex library.

LOG (removed non relevant lines):

 2020-02-07 16:02:00,117 -     INFO -    GOOGLE [139652553303808]: Processing 6 changes                                                                                             
 2020-02-07 16:02:00,120 -     INFO -    GOOGLE [139652553303808]: Added '1GIAmTGHA1dXACD3lDoT7Uf9GImSLYFD1' to cache: Winter In Analog (Album)                                                                                      
 2020-02-07 16:02:00,374 -     INFO -    GOOGLE [139652553303808]: Added '1_UPoeB-ymuOfIfXK27SjbNJ7QYlANWPx' to cache: 08 Celebrate.flac                                            
 2020-02-07 16:03:07,381 -     INFO -      PLEX [139652428068608]: File '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Album)/08 Celebrate.flac' exists on check 1 of 5.    
 2020-02-07 16:03:07,382 -     INFO -      PLEX [139652428068608]: Scan request is now being processed...                                                                           
 2020-02-07 16:03:07,438 -     INFO -      PLEX [139652428068608]: No 'Plex Media Scanner' processes were found.                                                                    
 2020-02-07 16:03:07,438 -     INFO -      PLEX [139652428068608]: Running Plex Media Scanner for: /mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Album)                     
 2020-02-07 16:03:08,541 -     INFO -      PLEX [139652428068608]: Finished scan!                                                                                                   
 2020-02-07 16:03:09,553 -     INFO -      PLEX [139652428068608]: There are 0 queued item(s) remaining.                                                                            
 2020-02-07 16:03:19,562 -    ERROR -      PLEX [139652428068608]: Could not locate record in 'media_parts' where 'file' = '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Al
bum)/08 Celebrate.flac' in 1 of 5 attempts...                                                                                                                                       
 2020-02-07 16:03:29,571 -    ERROR -      PLEX [139652428068608]: Could not locate record in 'media_parts' where 'file' = '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Al
bum)/08 Celebrate.flac' in 2 of 5 attempts...                                                                                                                                       
 2020-02-07 16:03:39,579 -    ERROR -      PLEX [139652428068608]: Could not locate record in 'media_parts' where 'file' = '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Al
bum)/08 Celebrate.flac' in 3 of 5 attempts...                                                                                                                                       
 2020-02-07 16:03:49,588 -    ERROR -      PLEX [139652428068608]: Could not locate record in 'media_parts' where 'file' = '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Al
bum)/08 Celebrate.flac' in 4 of 5 attempts...                                                                                                                                       
 2020-02-07 16:03:59,595 -    ERROR -      PLEX [139652428068608]: Could not locate record in 'media_parts' where 'file' = '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Al
bum)/08 Celebrate.flac' in 5 of 5 attempts...                                                                                                                                       
 2020-02-07 16:04:02,507 -     INFO -    GOOGLE [139652553303808]: Retrieving changes from drive: drive_root                                                                        
 2020-02-07 16:04:02,739 -     INFO -    GOOGLE [139652553303808]: Processing 0 changes                                                                                             
 2020-02-07 16:04:02,739 -     INFO -    GOOGLE [139652553303808]: 0 added / 0 removed / 0 unwanted / 0 ignored / 0 renamed / 0 moved                                               
 2020-02-07 16:04:02,739 -     INFO -    GOOGLE [139652553303808]: Retrieving changes from drive: teamdrive_Hip-Hop & Jazz                                                          
 2020-02-07 16:04:02,929 -     INFO -    GOOGLE [139652553303808]: Processing 0 changes                                                                                             
 2020-02-07 16:04:02,930 -     INFO -    GOOGLE [139652553303808]: 0 added / 0 removed / 0 unwanted / 0 ignored / 0 renamed / 0 moved                                               
 2020-02-07 16:04:02,930 -     INFO -    GOOGLE [139652553303808]: Retrieving changes from drive: teamdrive_Multimedia-grupo                                                        
 2020-02-07 16:04:03,121 -     INFO -    GOOGLE [139652553303808]: Processing 0 changes                                                                                             
 2020-02-07 16:04:03,122 -     INFO -    GOOGLE [139652553303808]: 0 added / 0 removed / 0 unwanted / 0 ignored / 0 renamed / 0 moved                                               
 2020-02-07 16:04:09,603 -    ERROR -      PLEX [139652428068608]: Could not locate record in 'media_parts' where 'file' = '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Al
bum)/08 Celebrate.flac' after 5 tries                                                                                                                                               
 2020-02-07 16:04:09,604 -  WARNING -      PLEX [139652428068608]: Aborting analysis of '/mnt/unionfs/HIP-HOP/The Other Guys/Winter In Analog (Album)/08 Celebrate.flac' because cou
ld not find any 'metadata_item_id' for it. 
jennec commented 4 years ago

This doesn;t look like a bug. it looks like, as you stated, the music files are not being added to your Plex Library. This is because the Plex Media Scanner is not adding the files.

See my response to #130