Jump to content

Auto-Organize does not organize files


FilipW

Recommended Posts

FilipW

Hi,

 

I have the auto-organize plugin and it just does not organize the files anymore. It used to work on the old version (mediabrowser, version around 3.0). Now with Emby (Version 3.3.1.0), the plugin just does not work. I looked at the logs, and it seems to recognize the files correctly, but does not do anything. It however correctly mentions files it cannot recognize for manual intervention. For any automatic renaming, the plugin does not work. I reverted back to mediabrowser and it worked nicely again.

 

I am attaching my logs.

Link to comment
Share on other sites

FilipW

All I see this:

2018-03-11 20:16:43.267 Info HttpServer: HTTP Response 200 to 192.168.1.56. Time: 1ms. http://192.168.1.99:8096/emby/ScheduledTasks?IsEnabled=true 
2018-03-11 20:16:44.948 Info App: Sorting file /media/nas/download/content/_UNKNOWN_The Legend of the Drunken Master [Jackie Chan] [1994] DVD-RIP [ENG] By Hariwan.avi
2018-03-11 20:16:44.968 Warn App: Unable to determine series name from /media/nas/download/content/_UNKNOWN_The Legend of the Drunken Master [Jackie Chan] [1994] DVD-RIP [ENG] By Hariwan.avi
2018-03-11 20:16:44.975 Info App: Sorting file /media/nas/download/content/[1974]Rumble in Hong Kong.avi
2018-03-11 20:16:44.978 Warn App: Unable to determine series name from /media/nas/download/content/[1974]Rumble in Hong Kong.avi
2018-03-11 20:16:44.978 Info App: Sorting file /media/nas/download/content/The.Big.Bang.Theory.S10E13.HDTV.x264-LOL[ettv]/the.big.bang.theory.1013.hdtv-lol[ettv].mkv
2018-03-11 20:16:45.002 Debug App: Extracted information from /media/nas/download/content/The.Big.Bang.Theory.S10E13.HDTV.x264-LOL[ettv]/the.big.bang.theory.1013.hdtv-lol[ettv].mkv. Series name the.big.bang.theory, Season 10, Episode 13
2018-03-11 20:16:45.043 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E02.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E02.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.063 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E02.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E02.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 2
2018-03-11 20:16:45.065 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E03.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E03.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.084 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E03.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E03.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 3
2018-03-11 20:16:45.088 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E04.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E04.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.107 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E04.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E04.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 4
2018-03-11 20:16:45.109 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E05.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E05.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.129 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E05.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E05.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 5
2018-03-11 20:16:45.131 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E06.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E06.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.151 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E06.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E06.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 6
2018-03-11 20:16:45.153 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E07.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E07.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.173 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E07.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E07.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 7
2018-03-11 20:16:45.175 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E08.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E08.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.194 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E08.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E08.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 8
2018-03-11 20:16:45.197 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E09.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E09.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.216 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E09.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E09.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 9
2018-03-11 20:16:45.219 Info App: Sorting file /media/nas/download/shows/Rick.and.Morty.S03E10.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E10.720p.HDTV.x264-BATV.mkv
2018-03-11 20:16:45.239 Debug App: Extracted information from /media/nas/download/shows/Rick.and.Morty.S03E10.720p.HDTV.x264-BATV[rarbg]/Rick.and.Morty.S03E10.720p.HDTV.x264-BATV.mkv. Series name Rick.and.Morty, Season 3, Episode 10
2018-03-11 20:16:45.241 Info App: Sorting file /media/nas/download/shows/The.Walking.Dead.S08E00.Behind.the.Dead.PROPER.720p.HDTV.x264-W4F[rarbg]/the.walking.dead.s08e00.behind.the.dead.proper.720p.hdtv.x264-w4f.mkv
2018-03-11 20:16:45.276 Debug App: Extracted information from /media/nas/download/shows/The.Walking.Dead.S08E00.Behind.the.Dead.PROPER.720p.HDTV.x264-W4F[rarbg]/the.walking.dead.s08e00.behind.the.dead.proper.720p.hdtv.x264-w4f.mkv. Series name the.walking.dead, Season 8, Episode 0
2018-03-11 20:16:45.278 Info App: Sorting file /media/nas/download/shows/Supergirl.S03E08.HDTV.x264-SVA[ettv]/Supergirl.S03E08.HDTV.x264-SVA[ettv].mkv
2018-03-11 20:16:45.293 Debug App: Extracted information from /media/nas/download/shows/Supergirl.S03E08.HDTV.x264-SVA[ettv]/Supergirl.S03E08.HDTV.x264-SVA[ettv].mkv. Series name Supergirl, Season 3, Episode 8
2018-03-11 20:16:45.295 Info App: Sorting file /media/nas/download/shows/DC's.Legends.of.Tomorrow.S03E08.720p.HDTV.2CH.x265.HEVC-PSA/DC's.Legends.of.Tomorrow.S03E08.720p.HDTV.2CH.x265.HEVC-PSA.mkv
2018-03-11 20:16:45.323 Debug App: Extracted information from /media/nas/download/shows/DC's.Legends.of.Tomorrow.S03E08.720p.HDTV.2CH.x265.HEVC-PSA/DC's.Legends.of.Tomorrow.S03E08.720p.HDTV.2CH.x265.HEVC-PSA.mkv. Series name DC's.Legends.of.Tomorrow, Season 3, Episode 8
2018-03-11 20:16:45.326 Info App: Sorting file /media/nas/download/content/The.Simpsons.S29E10.HDTV.x264-KILLERS[rarbg]/The.Simpsons.S29E10.HDTV.x264-KILLERS.mkv
2018-03-11 20:16:45.344 Debug App: Extracted information from /media/nas/download/content/The.Simpsons.S29E10.HDTV.x264-KILLERS[rarbg]/The.Simpsons.S29E10.HDTV.x264-KILLERS.mkv. Series name The.Simpsons, Season 29, Episode 10
2018-03-11 20:16:45.346 Info App: Sorting file /media/nas/download/content/The.Big.Bang.Theory.S11E13.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E13.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.369 Debug App: Extracted information from /media/nas/download/content/The.Big.Bang.Theory.S11E13.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E13.720p.HDTV.x264-AVS.mkv. Series name The.Big.Bang.Theory, Season 11, Episode 13
2018-03-11 20:16:45.370 Info App: Sorting file /media/nas/download/content/The.Big.Bang.Theory.S11E12.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E12.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.393 Debug App: Extracted information from /media/nas/download/content/The.Big.Bang.Theory.S11E12.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E12.720p.HDTV.x264-AVS.mkv. Series name The.Big.Bang.Theory, Season 11, Episode 12
2018-03-11 20:16:45.395 Info App: Sorting file /media/nas/download/content/The.Simpsons.S29E11.HDTV.x264-KILLERS[rarbg]/The.Simpsons.S29E11.HDTV.x264-KILLERS.mkv
2018-03-11 20:16:45.412 Debug App: Extracted information from /media/nas/download/content/The.Simpsons.S29E11.HDTV.x264-KILLERS[rarbg]/The.Simpsons.S29E11.HDTV.x264-KILLERS.mkv. Series name The.Simpsons, Season 29, Episode 11
2018-03-11 20:16:45.417 Info App: Sorting file /media/nas/download/content/The.Big.Bang.Theory.S11E11.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E11.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.439 Debug App: Extracted information from /media/nas/download/content/The.Big.Bang.Theory.S11E11.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E11.720p.HDTV.x264-AVS.mkv. Series name The.Big.Bang.Theory, Season 11, Episode 11
2018-03-11 20:16:45.441 Info App: Sorting file /media/nas/download/shows/Homeland.S07E02.WEB.H264-DEFLATE[rarbg]/Homeland.S07E02.WEB.H264-DEFLATE.mkv
2018-03-11 20:16:45.456 Debug App: Extracted information from /media/nas/download/shows/Homeland.S07E02.WEB.H264-DEFLATE[rarbg]/Homeland.S07E02.WEB.H264-DEFLATE.mkv. Series name Homeland, Season 7, Episode 2
2018-03-11 20:16:45.458 Info App: Sorting file /media/nas/download/shows/Homeland.S07E03.WEB.H264-DEFLATE[rarbg]/Homeland.S07E03.WEB.H264-DEFLATE.mkv
2018-03-11 20:16:45.472 Debug App: Extracted information from /media/nas/download/shows/Homeland.S07E03.WEB.H264-DEFLATE[rarbg]/Homeland.S07E03.WEB.H264-DEFLATE.mkv. Series name Homeland, Season 7, Episode 3
2018-03-11 20:16:45.474 Info App: Sorting file /media/nas/download/shows/The.Walking.Dead.S08E09.720p.HDTV.x264-AVS[rarbg]/The.Walking.Dead.S08E09.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.494 Debug App: Extracted information from /media/nas/download/shows/The.Walking.Dead.S08E09.720p.HDTV.x264-AVS[rarbg]/The.Walking.Dead.S08E09.720p.HDTV.x264-AVS.mkv. Series name The.Walking.Dead, Season 8, Episode 9
2018-03-11 20:16:45.497 Info App: Sorting file /media/nas/download/shows/The.Flash.2014.S04E14.720p.HDTV.x264-AVS[rarbg]/The.Flash.2014.S04E14.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.517 Debug App: Extracted information from /media/nas/download/shows/The.Flash.2014.S04E14.720p.HDTV.x264-AVS[rarbg]/The.Flash.2014.S04E14.720p.HDTV.x264-AVS.mkv. Series name The.Flash.2014, Season 4, Episode 14
2018-03-11 20:16:45.519 Info App: Sorting file /media/nas/download/shows/The.Big.Bang.Theory.S11E16.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E16.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.540 Debug App: Extracted information from /media/nas/download/shows/The.Big.Bang.Theory.S11E16.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E16.720p.HDTV.x264-AVS.mkv. Series name The.Big.Bang.Theory, Season 11, Episode 16
2018-03-11 20:16:45.542 Info App: Sorting file /media/nas/download/shows/Arrow.S06E14.720p.HDTV.x264-AVS[rarbg]/Arrow.S06E14.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.557 Debug App: Extracted information from /media/nas/download/shows/Arrow.S06E14.720p.HDTV.x264-AVS[rarbg]/Arrow.S06E14.720p.HDTV.x264-AVS.mkv. Series name Arrow, Season 6, Episode 14
2018-03-11 20:16:45.558 Info App: Sorting file /media/nas/download/shows/Homeland.S07E04.WEB.H264-DEFLATE[rarbg]/Homeland.S07E04.WEB.H264-DEFLATE.mkv
2018-03-11 20:16:45.573 Debug App: Extracted information from /media/nas/download/shows/Homeland.S07E04.WEB.H264-DEFLATE[rarbg]/Homeland.S07E04.WEB.H264-DEFLATE.mkv. Series name Homeland, Season 7, Episode 4
2018-03-11 20:16:45.575 Info App: Sorting file /media/nas/download/shows/The.Walking.Dead.S08E10.720p.HDTV.x264-AVS[rarbg]/The.Walking.Dead.S08E10.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.595 Debug App: Extracted information from /media/nas/download/shows/The.Walking.Dead.S08E10.720p.HDTV.x264-AVS[rarbg]/The.Walking.Dead.S08E10.720p.HDTV.x264-AVS.mkv. Series name The.Walking.Dead, Season 8, Episode 10
2018-03-11 20:16:45.597 Info App: Sorting file /media/nas/download/shows/Arrow.S06E15.720p.HDTV.x264-AVS[rarbg]/Arrow.S06E15.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.612 Debug App: Extracted information from /media/nas/download/shows/Arrow.S06E15.720p.HDTV.x264-AVS[rarbg]/Arrow.S06E15.720p.HDTV.x264-AVS.mkv. Series name Arrow, Season 6, Episode 15
2018-03-11 20:16:45.614 Info App: Sorting file /media/nas/download/shows/The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS[rarbg]/The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv
2018-03-11 20:16:45.643 Debug App: Extracted information from /media/nas/download/shows/The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS[rarbg]/The.Big.Bang.Theory.S11E17.PROPER.720p.HDTV.x264-KILLERS.mkv. Series name The.Big.Bang.Theory, Season 11, Episode 17
2018-03-11 20:16:45.645 Info App: Sorting file /media/nas/download/shows/The.Big.Bang.Theory.S11E17.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E17.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.667 Debug App: Extracted information from /media/nas/download/shows/The.Big.Bang.Theory.S11E17.720p.HDTV.x264-AVS[rarbg]/The.Big.Bang.Theory.S11E17.720p.HDTV.x264-AVS.mkv. Series name The.Big.Bang.Theory, Season 11, Episode 17
2018-03-11 20:16:45.669 Info App: Sorting file /media/nas/download/shows/The.Flash.2014.S04E15.720p.HDTV.x264-AVS[rarbg]/The.Flash.2014.S04E15.720p.HDTV.x264-AVS.mkv
2018-03-11 20:16:45.689 Debug App: Extracted information from /media/nas/download/shows/The.Flash.2014.S04E15.720p.HDTV.x264-AVS[rarbg]/The.Flash.2014.S04E15.720p.HDTV.x264-AVS.mkv. Series name The.Flash.2014, Season 4, Episode 15
2018-03-11 20:16:45.691 Info TaskManager: Organize new media files Completed after 0 minute(s) and 3 seconds
Link to comment
Share on other sites

FilipW

All the files which were correctly recognized were not moved and nothing happened (e.g. no entry in the activity log). I looked at the code and it seems there should be log statmenets after "Extracted information from" 

 

After running the older version, it worked flawlessly and all the files were organized. 

Link to comment
Share on other sites

FilipW

I could only run an older version of emby (called mediabrowser). I believe the version is around 3.0. I still have both of them on my server, as the name and package changed, so both can be easily installed concurrently.

 

The point I am making, is that this has nothing to do with the files, because the files used to work. It has something to do with the new version of emby. I have upgraded from mediabrowser to emby, maybe it has something to do with that?

Edited by FilipW
Link to comment
Share on other sites

It might be due to the periods in the names. The.Big.Bang.Theory. It extracted that as the series name and then it looks for a series in your library with the same name. if it can't find one then it won't organize.

Link to comment
Share on other sites

FilipW

But in that case it should be in the log so that I can manually organize. As already stated, in "mediabrowser 3.0" this worked without any problems with the exact same files. This must be a regression in the code

Link to comment
Share on other sites

Ok, in the auto-organize activity log can you try to manually organize one of these? then when it fails, afterwards you can click or hover over the path in the table and it will allow you to see the error message. can you find what that says? thanks.

Link to comment
Share on other sites

FilipW

Thanks for the message! That is part of the problem, these files do not show up in the activity log, so I cannot manually organize them. 

Link to comment
Share on other sites

FilipW

@@Luke, do you have an update on this? After upgrading to the newest version of emby, it has become difficult to consume my shows as I used to. I keep needing to run the old version of mediabrowser to run auto organize

Link to comment
Share on other sites

I can't reproduce the problem but I pushed an update to the plugin with more logging that might help.

Link to comment
Share on other sites

FilipW

Hi Luke! Thanks for the additional logging. It seems that it was a NullPointerException:

2018-03-26 21:58:38.681 Debug App: Extracted information from /media/nas/download/shows/The.Walking.Dead.S08E13.720p.HDTV.x264-AVS[rarbg]/The.Walking.Dead.S08E13.720p.HDTV.x264-AVS.mkv. Series name The.Walking.Dead, Season 8, Episode 13
2018-03-26 21:58:38.684 Error App: Error organizing file
	*** Error Report ***
	Version: 3.3.1.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby-server -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 3.13.0.143
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 8
	Program data path: /var/lib/emby-server
	Application directory: /opt/emby-server/system
	System.ArgumentNullException: Value cannot be null.
	Parameter name: text
	   at Emby.Server.Implementations.Localization.TextLocalizer.RemoveDiacritics(String text)
	   at Emby.AutoOrganize.Core.NameUtils.GetComparableName(String name)
	   at Emby.AutoOrganize.Core.NameUtils.IsNameMatch(String name1, String name2)
	   at Emby.AutoOrganize.Core.NameUtils.GetMatchScore[T](String sortedName, Nullable`1 year, T series)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
	   at System.Linq.OrderedEnumerable`1.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.GetMatchingSeries(String seriesName, FileOrganizationResult result, AutoOrganizeOptions options)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.OrganizeEpisode(String sourcePath, String seriesName, Nullable`1 seasonNumber, Nullable`1 episodeNumber, Nullable`1 endingEpiosdeNumber, Nullable`1 premiereDate, AutoOrganizeOptions options, Boolean overwriteExisting, Boolean rememberCorrection, FileOrganizationResult result, CancellationToken cancellationToken)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.<OrganizeEpisodeFile>d__12.MoveNext()
	System.ArgumentNullException
	   at Emby.Server.Implementations.Localization.TextLocalizer.RemoveDiacritics(String text)
	   at Emby.AutoOrganize.Core.NameUtils.GetComparableName(String name)
	   at Emby.AutoOrganize.Core.NameUtils.IsNameMatch(String name1, String name2)
	   at Emby.AutoOrganize.Core.NameUtils.GetMatchScore[T](String sortedName, Nullable`1 year, T series)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
	   at System.Linq.OrderedEnumerable`1.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.GetMatchingSeries(String seriesName, FileOrganizationResult result, AutoOrganizeOptions options)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.OrganizeEpisode(String sourcePath, String seriesName, Nullable`1 seasonNumber, Nullable`1 episodeNumber, Nullable`1 endingEpiosdeNumber, Nullable`1 premiereDate, AutoOrganizeOptions options, Boolean overwriteExisting, Boolean rememberCorrection, FileOrganizationResult result, CancellationToken cancellationToken)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.<OrganizeEpisodeFile>d__12.MoveNext()

Link to comment
Share on other sites

FilipW

Hey Luke,

 

Thanks for pushing the update out. I am running version 1.1.8 and unfortunately, auto organize still does not work for me. I get the following stack trace:

2018-03-30 11:59:23.745 Info App: Sorting file /media/nas/download/content/The.Big.Bang.Theory.S10E13.HDTV.x264-LOL[ettv]/the.big.bang.theory.1013.hdtv-lol[ettv].mkv
2018-03-30 11:59:23.768 Debug App: Extracted information from /media/nas/download/content/The.Big.Bang.Theory.S10E13.HDTV.x264-LOL[ettv]/the.big.bang.theory.1013.hdtv-lol[ettv].mkv. Series name the.big.bang.theory, Season 10, Episode 13
2018-03-30 11:59:23.782 Error App: Error organizing file
	*** Error Report ***
	Version: 3.3.1.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby-server -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 3.13.0.143
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 8
	Program data path: /var/lib/emby-server
	Application directory: /opt/emby-server/system
	System.ArgumentNullException: Value cannot be null.
	Parameter name: text
	   at Emby.Server.Implementations.Localization.TextLocalizer.RemoveDiacritics(String text)
	   at Emby.AutoOrganize.Core.NameUtils.GetComparableName(String name)
	   at Emby.AutoOrganize.Core.NameUtils.IsNameMatch(String name1, String name2)
	   at Emby.AutoOrganize.Core.NameUtils.GetMatchScore[T](String sortedName, Nullable`1 year, T series)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
	   at System.Linq.OrderedEnumerable`1.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.GetMatchingSeries(String seriesName, FileOrganizationResult result, AutoOrganizeOptions options)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.OrganizeEpisode(String sourcePath, String seriesName, Nullable`1 seasonNumber, Nullable`1 episodeNumber, Nullable`1 endingEpiosdeNumber, Nullable`1 premiereDate, AutoOrganizeOptions options, Boolean overwriteExisting, Boolean rememberCorrection, FileOrganizationResult result, CancellationToken cancellationToken)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.<OrganizeEpisodeFile>d__12.MoveNext()
	System.ArgumentNullException
	   at Emby.Server.Implementations.Localization.TextLocalizer.RemoveDiacritics(String text)
	   at Emby.AutoOrganize.Core.NameUtils.GetComparableName(String name)
	   at Emby.AutoOrganize.Core.NameUtils.IsNameMatch(String name1, String name2)
	   at Emby.AutoOrganize.Core.NameUtils.GetMatchScore[T](String sortedName, Nullable`1 year, T series)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
	   at System.Linq.OrderedEnumerable`1.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.TryGetFirst(Boolean& found)
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.GetMatchingSeries(String seriesName, FileOrganizationResult result, AutoOrganizeOptions options)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.OrganizeEpisode(String sourcePath, String seriesName, Nullable`1 seasonNumber, Nullable`1 episodeNumber, Nullable`1 endingEpiosdeNumber, Nullable`1 premiereDate, AutoOrganizeOptions options, Boolean overwriteExisting, Boolean rememberCorrection, FileOrganizationResult result, CancellationToken cancellationToken)
	   at Emby.AutoOrganize.Core.EpisodeFileOrganizer.<OrganizeEpisodeFile>d__12.MoveNext()
Link to comment
Share on other sites

FilipW

I went through the code and I think I found the problem:

 

5abe0e6953798_Selection_999689.png

 

It is not a problem of the parsed file, it is a problem in the database. I will check the database if there are any null values, but I think the code could simply ignore these series instead of crashing

Link to comment
Share on other sites

FilipW

Okay, I figured out what happened and I fixed it on my end. I have migrated from an older version of emby (mediabrowser) to the current version (with the provided instructions)

 

The database for TypedBaseItems had old and new entries. The old entries had the data only in the data json column while the new entries had their data in columns. This broke the plugin as it would try to match a file against a series and fail because some entries in the entities had null values (e.g. name).

 

I don't know if that happened during the migration, but in general, the code would need to be updated to ignore any series with no name. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...