MediaBrowser / Emby.AutoOrganize

Auto-organize plugin for Emby Server
MIT License
21 stars 18 forks source link

Auto-Organize Series folders are in lower case #30

Open tsikerdekis opened 5 years ago

tsikerdekis commented 5 years ago

Even if my folders have their starting letter properly capitalized, autoorganize creates a separate folder that is lower case and that confuses emby.

Is this the expected behavior?

LukePulverenti commented 5 years ago

No, what does confuses mean?

tsikerdekis commented 5 years ago

I mean that Emby will not read the files properly into the Show. Instead I have to search for the file and then do a refresh metadata exactly on that file so that it will show up as a new episode on Emby

LukePulverenti commented 5 years ago

You may have to give it a few minutes as it reports the changes internally to the server just like the realtime monitor and there is a delay incorporated into that.

tsikerdekis commented 5 years ago

Extra time does not solve it, I left it for days and it didn't fix it. A bit more on the error (which I am not even sure if it is a plugin or emby error). The folder structure looks like this

myshow (2015) -> Season 4 -> MyShow - 4x01 - Title.mkv

Internally, the show is recognized on emby but the Season is not listed.

tsikerdekis commented 5 years ago

So, I remade the whole library and I can confirm that this doesn't fix the problem. The only way to make so that the season will show properly is to rename the show to either MyShow (the proper name that corresponds to TVdb) or MyShow (2015)

Frankly, I am not sure why autoorganize moves the episodes into a new folder that is the lowercase name of the show

LukePulverenti commented 5 years ago

Can you attach the server log from when this happened? thanks.

tsikerdekis commented 5 years ago

I anonymized the data related to the episode but the log sequence is exactly like it happened.

2019-05-19 20:13:34.779 Info TaskManager: IntervalTrigger fired for task: Organize new media files
2019-05-19 20:13:34.779 Info TaskManager: Queueing task OrganizerScheduledTask
2019-05-19 20:13:34.779 Info TaskManager: Executing Organize new media files
2019-05-19 20:13:53.305 Info App: Sorting file /home/user/DL/Myshow.S04E22.720p.HDTV.x264-AVS[eztv].mkv
2019-05-19 20:13:53.703 Info HttpClient: GET https://private.omdbapi.com?apikey=fe53f97e&plot=full&r=json&i=tt40164&Episode=22&Season=4
2019-05-19 20:13:54.043 Info App: Sorting file /home/user/DL/Myshow.S04E22.720p.HDTV.x264-AVS[eztv].mkv into series /home/user/TVShows/myshow (2015)
2019-05-19 20:13:54.100 Info App: Sorting file /home/user/DL/Myshow.S04E22.720p.HDTV.x264-AVS[eztv].mkv to new path /home/user/TVShows/myshow (2015)/Season 4/Myshow - 4x22 - Peace.mkv

The GET request returns this: {"Response":"False","Error":"Series or episode not found!"}

The show however exists and even for episode 21 the GET request succeeds. Somehow the correct title for the episode is identified.

LukePulverenti commented 5 years ago

Can we please look at an exact example? thanks.

LukePulverenti commented 5 years ago

I'm not able to reproduce this. What version of the server and plugin do you have?

tsikerdekis commented 5 years ago

Emby 4.1.1.0 AutoOrganize 1.3.9.0

It still does this for some shows. Not sure why it uses the lowercase format. Does Autorganize use the IMDB title as the folder name? Or does it obtain the tile from the downloaded file name?

LukePulverenti commented 5 years ago

If it is organizing to an existing series in your library, then it uses the folder path of the series that is in your emby database. If it is creating a new series, then the new series name comes from the highest priority metadata provider, which would be tvdb.

I can't reproduce this but there are a lot of changes in the next update to the plugin, so i would suggest re-evaluating with that once you have it. Thanks.