Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Option to add --force flag for scans? #134

Open
edrock200 opened this issue Jan 25, 2020 · 4 comments
Open

Option to add --force flag for scans? #134

edrock200 opened this issue Jan 25, 2020 · 4 comments

Comments

@edrock200
Copy link

Describe the problem
For whatever reason Plex refuses to add srt external subtitles during autoscan refreshes. However if I go to the show and manually say "refresh metadata" it picks it up. I've looked at the logs from auto scan and Plex and it's properly seeing the srt (I added srt file type to Google drive Monitoring and turned off mine type checks) and Plex gets the right mapped path and the logs show it even sees the file. But I guess if the video file hasn't changed, it assumes nothing has changed and won't add the new srt.

Describe any solutions you think might work
In looking at the Plex media scanner command line documentation, it looks like adding the --force flag to the request is the same as doing a manual metadata refresh on the folder/object. Could this be added as an option in the config?

Additional context
If anyone has a better solution to pick up srts please let me know and thanks in advance!

@edrock200
Copy link
Author

Disregard, I tried added it to line 113 or 119 in plex.py and that flag just causes a full refresh of the entire library. I can't seem to figure out why Plex is seeing the srt's but refusing to do anything with them unless I do a "refresh metadata" manually on the show. I tried scouring the Plex logs to see if it yielded any clues as to what command it's executing when doing the manual refresh commands and it looks like it's calling for a refresh by object ID.

@desimaniac
Copy link
Collaborator

Try attempting a refresh over API. See

def refresh_plex_item(config, metadata_item_id, new_name):

@edrock200
Copy link
Author

Can you please elaborate on what you mean by this? Please pardon my ignorance, fairly new to autoscan.

@zelik888
Copy link

I have the same issue. Only a force works and it causes a full refresh. I’m assuming you are using bazarr, which doesn’t know the itemID, thus we can’t use the API to refresh. Scratching my head on this one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants