Jump to content

Auto Organize - Expanding its functionality


aaronsomek

Recommended Posts

chef

@TheUrbanXplorer :) I have some good news, and some... not so good news.

The not so good news is, currently the sorting methods won't be able to sort items in structures like this:

"Neue Filme und Serien\BatBat01\BatBat01\S01\S01E12"

The good news is that, I think it should be able to sort items in structures like that. So, I'm gonna do my best to get it to work! LOL!

Link to comment
Share on other sites

vaise

This is a plugin for emby, so the naming standards for emby should be utilised I would think.

There is noting in these standards that supports that naming format, so i dont see why you should go above and beyond what emby itself requires/supports :

https://support.emby.media/support/solutions/articles/44001159110-tv-naming

If it works now in emby, as it is not in the supported format, no guarantee it will work in a future update.

Ages back I moved and renamed all mine to match the emby requirements. 

Edited by vaise
  • Agree 1
Link to comment
Share on other sites

vaise

So, after the latest update, my issue of there being a Dynasties (2018) in both TVShgows and TVShows-4k has taken a step backwards.  Before, just the alert that is is duplicate was enough for me, now, is comes up with this :

image.thumb.png.04c7bd8a6ca912b202b29e8bb850f0ea.png

And if I click the organize button then i get to search for episode to identify -

image.png.56ea4c14b0f3d0c1d545e79c37dd6fca.png

 

But you have identified it in the past releases (and the base release built into emby), just that is was in two places and you picked the wrong one (the 4k one).

The series search both above comes up showing both series - (cant screen shot it as it is lost when I try the snip) - i.e you have two entries for Dynasties (2018), with no way of me knowing which one is which.  You need the emby library in that search box also if you want it to work correctly - so I know which one is which.

.

 

  • Thanks 1
Link to comment
Share on other sites

chef
40 minutes ago, vaise said:

So, after the latest update, my issue of there being a Dynasties (2018) in both TVShgows and TVShows-4k has taken a step backwards.  Before, just the alert that is is duplicate was enough for me, now, is comes up with this :

image.thumb.png.04c7bd8a6ca912b202b29e8bb850f0ea.png

And if I click the organize button then i get to search for episode to identify -

image.png.56ea4c14b0f3d0c1d545e79c37dd6fca.png

 

But you have identified it in the past releases (and the base release built into emby), just that is was in two places and you picked the wrong one (the 4k one).

The series search both above comes up showing both series - (cant screen shot it as it is lost when I try the snip) - i.e you have two entries for Dynasties (2018), with no way of me knowing which one is which.  You need the emby library in that search box also if you want it to work correctly - so I know which one is which.

.

 

Yes we attempted to use string normalization in order to point to the exact series. If it shows as "Failure", then we need to go back to the original code. No problem 👍 

In fact we should use the string normalization equality comparison, and if it fails we'll use the "contains" method from before.

That should do it. 

 

I agree the root folder in the select box is absolutely nesessary to find the proper series (when they span multiple folders).

Thanks! I'll add this now. 

Link to comment
Share on other sites

daedalus
14 hours ago, chef said:

version 1.6.2.8

  • If a file doesn't exist yet, perform sorting on the item.

should this fix my issue? if so, it does not fix it unfortunatly

Link to comment
Share on other sites

GiGo

Having some issues today, series already in my collection, adding another series, from the log this is what I get;

2022-04-16 07:27:41.744 Info App: Beginning file organization with corrections: The Great British Bake Off to 

Seems that it's not moving anything to the sort list.

Have tried with .28 and .27 same issue, this is on Windows Beta server .35

  • Thanks 1
Link to comment
Share on other sites

TheUrbanXplorer
8 hours ago, chef said:

@TheUrbanXplorer :) I have some good news, and some... not so good news.

The not so good news is, currently the sorting methods won't be able to sort items in structures like this:

"Neue Filme und Serien\BatBat01\BatBat01\S01\S01E12"

The good news is that, I think it should be able to sort items in structures like that. So, I'm gonna do my best to get it to work! LOL!

I noticed something strange.
I just manually named the 1st episode Dragon Ball and created the appropriate series and season folders (old school).
After Emby recognized the episode, AutoOrganize named and moved the entire season.
The rest of the seasons, which are not created, the plugin does not touch...?????????????????????!!!!!!!!!!!!!!!!!!!!!🤣😂🤯🤪

 

The series under the path "Neue Filme und Serien\BatBat01\BatBat01\S01\S01E12" I have not yet prepared for AutoOrganize. I am not surprised that it does not recognize anything.

Link to comment
Share on other sites

TheUrbanXplorer

Have now simply times the folders of the seasons themselves created.
After Emby has also recognized these, the other episodes are moved.
I took a new series, created only the folders for series and seasons (Emby recognizes the empty folders anyway) and also this series was now completely named and moved.

Link to comment
Share on other sites

chef
2 hours ago, TheUrbanXplorer said:

I noticed something strange.
I just manually named the 1st episode Dragon Ball and created the appropriate series and season folders (old school).
After Emby recognized the episode, AutoOrganize named and moved the entire season.
The rest of the seasons, which are not created, the plugin does not touch...?????????????????????!!!!!!!!!!!!!!!!!!!!!🤣😂🤯🤪

 

The series under the path "Neue Filme und Serien\BatBat01\BatBat01\S01\S01E12" I have not yet prepared for AutoOrganize. I am not surprised that it does not recognize anything.

Yes, the method that is stopping the sort is "GetMatchingSeason"

This method will look to see if the season exists, or it has to create one.

 

It was using the Episode object to get the parent index number to create the season folder.

But, if the episode is new... it wouldn't yet have that data attached to it.

I'll be damned! That is our Null reference. We can't rely on the episode data for the season number! Great work @TheUrbanXplorer!

Instead, we should be using the extracted information from the file name to match the season.

 

To test this, I need to delete a series, and sort it back into emby.

 

I'll be back with some more information soon.

 

Link to comment
Share on other sites

chef

After the task is complete, I know have a 90% success. the only item not sorted is a skipped existing movie I was testing :) 

1044832277_Ithinkwegotit_success.thumb.png.cb6b5afd9b5693bbdda1f6dffd03af08.png

Link to comment
Share on other sites

TheUrbanXplorer
4 hours ago, chef said:

@TheUrbanXplorer

I think we got it!

564711702_Ithinkwegotit.thumb.png.106d0207d18b33c524fb300ab5340046.png

Seems to be going better in any case.
The following is striking:

image.thumb.png.7a15a95490975bbeb8f0d26d7b5284ba.png

2022-04-16 18:40:42.256 Info App: Beginning file organization with corrections: Unsere kleine Farm to 
2022-04-16 18:40:42.279 Info App: Beginning Episode Organization
2022-04-16 18:40:42.279 Info App: Sorting file D:\Videos\Neue Filme und Serien\#Unsere kleine Farm\72BD-UnserekleineFarmS09E08-FKKTV\Unsere.kleine.Farm.S09E08.Nellie.und.Nancy.German.DUBBED.DL.FS.720p.BluRay.x264-FKKTV\fkktv-lhotp720-s09e08.mkv into series D:\Videos\Serien\Unsere kleine Farm (1974)
2022-04-16 18:40:42.279 Info App: Sorting file D:\Videos\Neue Filme und Serien\#Unsere kleine Farm\72BD-UnserekleineFarmS09E08-FKKTV\Unsere.kleine.Farm.S09E08.Nellie.und.Nancy.German.DUBBED.DL.FS.720p.BluRay.x264-FKKTV\fkktv-lhotp720-s09e08.mkv to new path D:\Videos\Serien\Unsere kleine Farm (1974)\Staffel 09\Unsere kleine Farm - S09E08 - Nellie und Nancy.mkv
2022-04-16 18:40:42.296 Error Server: Error processing request
	*** Error Report ***
	Version: 4.6.7.0
	Command line: C:\Users\Rico\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.22000
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: C:/Users/Rico/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 10
	Data path: C:\Users\Rico\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Rico\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: Unable to determine series from D:\Videos\Neue Filme und Serien\#Unsere kleine Farm\72BD-UnserekleineFarmS09E08-FKKTV\Unsere.kleine.Farm.S09E08.Nellie.und.Nancy.German.DUBBED.DL.FS.720p.BluRay.x264-FKKTV\fkktv-lhotp720-s09e08.mkv
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(EpisodeFileOrganizationRequest request)
	Source: Emby.AutoOrganize
	TargetSite: Void MoveNext()

 

Here it recognizes an existing version, but the button to overwrite does not work.

image.thumb.png.47accbe5c1e79dbc7ea46d5a0c476f46.png

2022-04-16 18:55:53.180 Info App: Organize with corrections: D:\Videos\Filme\Fast & Furious 7 (2015)\Fast & Furious 7 (2015) - 1080p [ Extended ].mp4
2022-04-16 18:55:53.183 Info App: Sorting file D:\Videos\Neue Filme und Serien\FandF 07 108\FandF 07 108\Fast.and.Furious.(07).Extended.2015.German.AAC51.DL.1080p.BluRay.x264-Kristallprinz.mp4 into movie D:\Videos\Filme\Fast & Furious 7 (2015)\Fast & Furious 7 (2015) - 1080p [ Extended ].mp4
2022-04-16 18:55:53.186 Info App: File 'D:\Videos\Neue Filme und Serien\FandF 07 108\FandF 07 108\Fast.and.Furious.(07).Extended.2015.German.AAC51.DL.1080p.BluRay.x264-Kristallprinz.mp4' already exists as 'D:\Videos\Filme\Fast & Furious 7 (2015)\Fast & Furious 7 (2015) - 1080p [ Extended ].mp4', stopping organization
2022-04-16 18:55:53.190 Error Server: Error processing request
	*** Error Report ***
	Version: 4.6.7.0
	Command line: C:\Users\Rico\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.22000
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: C:/Users/Rico/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 10
	Data path: C:\Users\Rico\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Rico\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: File 'D:\Videos\Neue Filme und Serien\FandF 07 108\FandF 07 108\Fast.and.Furious.(07).Extended.2015.German.AAC51.DL.1080p.BluRay.x264-Kristallprinz.mp4' already exists as 'D:\Videos\Filme\Fast & Furious 7 (2015)\Fast & Furious 7 (2015) - 1080p [ Extended ].mp4', stopping organization
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(MovieFileOrganizationRequest request)
	   at Emby.AutoOrganize.Api.FileOrganizationService.Post(OrganizeMovie request)
	   at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.AutoOrganize
	TargetSite: Void PerformOrganization(Emby.AutoOrganize.Model.MovieFileOrganizationRequest)
	

Here the film can be found and assigned, but not moved and named.

2022-04-16 19:19:50.376 Info App: MovieDbProvider: Finding id for item: Orangen.zu.Weihnachten
2022-04-16 19:19:50.377 Info HttpClient: GET https://api.themoviedb.org/3/search/movie?api_key=f6bd687ffa63cd282b6ff2c6877f2669&query=Orangen.zu.Weihnachten&language=de&year=2012
2022-04-16 19:20:00.339 Info Server: http/1.1 POST http://localhost:8096/emby/Library/FileOrganizations/4f4517beba3f36fd903587c4b8192028/Movie/Organize?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=8549addf-adf4-4b45-8268-39d10692c751&X-Emby-Client-Version=4.6.7.0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
2022-04-16 19:20:00.742 Error Server: Error processing request
	*** Error Report ***
	Version: 4.6.7.0
	Command line: C:\Users\Rico\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.22000
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: C:/Users/Rico/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 10
	Data path: C:\Users\Rico\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Rico\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: Object reference not set to an instance of an object.
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(MovieFileOrganizationRequest request)
	   at Emby.AutoOrganize.Api.FileOrganizationService.Post(OrganizeMovie request)
	   at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.AutoOrganize
	TargetSite: Void PerformOrganization(Emby.AutoOrganize.Model.MovieFileOrganizationRequest)

 

Edited by TheUrbanXplorer
  • Thanks 1
Link to comment
Share on other sites

chef

Right! Now I need to apply all the refactoring and bug fixes I made to the episode organizer, to the movie organizer.

I will do that next!

 

 

  • Like 1
Link to comment
Share on other sites

TheUrbanXplorer
8 minutes ago, chef said:

Right! Now I need to apply all the refactoring and bug fixes I made to the episode organizer, to the movie organizer.

I will do that next!

 

 

That sounds good. Just as an aside, even if it's not really important in view of the current problems:
A way to filter between movies and series to watch only the new series, for example, probably doesn't work, does it?

As I said, not essential, it was just buzzing through my head...

Link to comment
Share on other sites

TheUrbanXplorer

However, the series part seems to be working quite well again so far, except for the small error above.
Good work! Thanks for your effort!!!😁😘

Link to comment
Share on other sites

TheUrbanXplorer

But he continues not to create a new series:

2022-04-16 19:39:27.088 Info App: Beginning file organization with corrections: Legion to 
2022-04-16 19:39:27.095 Error Server: Error processing request
	*** Error Report ***
	Version: 4.6.7.0
	Command line: C:\Users\Rico\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.22000
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: C:/Users/Rico/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 10
	Data path: C:\Users\Rico\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Rico\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: Object reference not set to an instance of an object.
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(EpisodeFileOrganizationRequest request)
	Source: Emby.AutoOrganize
	TargetSite: Void MoveNext()

 

  • Thanks 1
Link to comment
Share on other sites

GiGo

Stumped on this one @chef

2022-04-16 18:18:53.453 Info App: Beginning Episode Organization
2022-04-16 18:18:53.453 Info App: Sorting file G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv into series G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)
2022-04-16 18:18:53.453 Info App: Sorting file G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv to new path G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv
2022-04-16 18:18:53.806 Info App: Plugin options: no overwrite episode
2022-04-16 18:18:53.806 Info App: Perform Sorting
2022-04-16 18:18:53.806 Info App: Auto organize added G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv to inprogress list
2022-04-16 18:18:54.031 Info App: Moving File
2022-04-16 18:18:54.068 Info App: G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv has successfully been moved to G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv
2022-04-16 18:18:54.069 Info App: Removing Source file from watched folder: G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv
2022-04-16 18:18:54.074 Info App: Perform Sorting
2022-04-16 18:18:54.074 Info App: Auto organize added G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv to inprogress list
2022-04-16 18:18:54.086 Info App: Moving File
2022-04-16 18:18:54.106 Info App: Removing library item: G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv
2022-04-16 18:18:54.108 Warn App: Could not find file 'G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv'.
2022-04-16 18:18:54.115 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.35
	Command line: C:\Users\giles\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.19043
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: C:/Users/giles/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\giles\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\giles\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: Auto organize added G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv to inprogress list
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(EpisodeFileOrganizationRequest request)
	Source: Emby.AutoOrganize
	TargetSite: Void MoveNext()

It moves the file, removes the file, try's the sort it again, organises, removes it from the watch folder and then removes it from the library as well!? This is the frist file in a new series, hasn't appeared to happen with any others, it's done this twice now for this same episode and have just noticed it's done for 6 entire series of The Great British Bake Off!

Using .2.9 on windows beta .35 seems to be a bit of a big issue lol, log attached.

embyserver.txt

Link to comment
Share on other sites

chef
6 minutes ago, GiGo said:

Stumped on this one @chef

2022-04-16 18:18:53.453 Info App: Beginning Episode Organization
2022-04-16 18:18:53.453 Info App: Sorting file G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv into series G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)
2022-04-16 18:18:53.453 Info App: Sorting file G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv to new path G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv
2022-04-16 18:18:53.806 Info App: Plugin options: no overwrite episode
2022-04-16 18:18:53.806 Info App: Perform Sorting
2022-04-16 18:18:53.806 Info App: Auto organize added G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv to inprogress list
2022-04-16 18:18:54.031 Info App: Moving File
2022-04-16 18:18:54.068 Info App: G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv has successfully been moved to G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv
2022-04-16 18:18:54.069 Info App: Removing Source file from watched folder: G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv
2022-04-16 18:18:54.074 Info App: Perform Sorting
2022-04-16 18:18:54.074 Info App: Auto organize added G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv to inprogress list
2022-04-16 18:18:54.086 Info App: Moving File
2022-04-16 18:18:54.106 Info App: Removing library item: G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv
2022-04-16 18:18:54.108 Warn App: Could not find file 'G:\Shared drives\Backup1\_sort\Copy of Taskmaster.S13E01.The.Noise.That.Blue.Makes.1080p.ALL4.WEB-DL.AAC2.0.H.264.mkv'.
2022-04-16 18:18:54.115 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.35
	Command line: C:\Users\giles\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.19043
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: C:/Users/giles/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\giles\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\giles\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: Auto organize added G:\Shared drives\Backup1\emby-primary\TV\Taskmaster (2015)\Season13\Taskmaster.S13E01 - The Noise That Blue Makes.mkv to inprogress list
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(EpisodeFileOrganizationRequest request)
	Source: Emby.AutoOrganize
	TargetSite: Void MoveNext()

It moves the file, removes the file, try's the sort it again, organises, removes it from the watch folder and then removes it from the library as well!? This is the frist file in a new series, hasn't appeared to happen with any others, it's done this twice now for this same episode and have just noticed it's done for 6 entire series of The Great British Bake Off!

Using .2.9 on windows beta .35 seems to be a bit of a big issue lol, log attached.

embyserver.txt 1.31 MB · 0 downloads

That is new. 

It looks like the task hasn't completed before the task runs again, and thinks it needs to remove the item and sort it.

On it!

  • Thanks 1
Link to comment
Share on other sites

chef

@GiGo found it. 

When we added the keywords input to the configurations,  it really sent a wave of bugs through the entire code. kind of a pain actually.

I gutted it! I took out a bunch of code, and simplified everything. 😬

From my tests now, both new episodes, and existing episodes will sort.

It went from almost 3500 lines of code in the episode sorter, to 1324 lines.

Now at least  you can follow the logic.

 

Emby.AutoOrganize_v1.6.2.9b.zip

But my head is starting to hurt LOL!

Edited by chef
  • Like 1
Link to comment
Share on other sites

GiGo
21 minutes ago, chef said:

@GiGo found it. 

When we added the keywords input to the configurations,  it really sent a wave of bugs through the entire code. kind of a pain actually.

I gutted it! I took out a bunch of code, and simplified everything. 😬

From my tests now, both new episodes, and existing episodes will sort.

It went from almost 3500 lines of code in the episode sorter, to 1324 lines.

Now at least  you can follow the logic.

 

Emby.AutoOrganize_v1.6.2.9b.zip 274.3 kB · 0 downloads

But my head is starting to hurt LOL!

I am very much appricaiting the efforts! That's a lot of code to go through! I will report back if there is anymore issues.

Link to comment
Share on other sites

neik

My observations on 1.6.2.9b:

- Sorting to existing tv shows with an unique destination folder seems to be work fine again.

- Sorting unknown movie which was identified via "+" in the fileorganizer pop-up leads to an error:
 

2022-04-17 09:34:44.112 Info Server: http/2 POST https://host1:13985/emby/Library/FileOrganizations/d7c675a00840ab036f4df5d60f4407b3/Movie/Organize?X-Emby-Client=Emby Web&X-Emby-Device-Name=Google Chrome Windows&X-Emby-Device-Id=**************&X-Emby-Client-Version=4.7.0.34&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
2022-04-17 09:34:44.151 Info App: Sorting file /path/to/file/happyfeet.mkv into movie /path/to/destination/movies/Happy Feet (2006)/Happy Feet (2006).mkv
2022-04-17 09:34:44.231 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.34
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Linux version 5.4.0-88-generic (buildd@lgw01-amd64-008) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	System.Exception: System.Exception: Unable to find movie in library matching name happyfeet
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(MovieFileOrganizationRequest request)
	   at Emby.AutoOrganize.Api.FileOrganizationService.Post(OrganizeMovie request)
	   at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.AutoOrganize
	TargetSite: Void PerformOrganization(Emby.AutoOrganize.Model.MovieFileOrganizationRequest)
	
2022-04-17 09:34:44.241 Info Server: http/2 Response 500 to host2. Time: 129ms. https://host1:13985/emby/Library/FileOrganizations/d7c675a00840ab036f4df5d60f4407b3/Movie/Organize?X-Emby-Client=Emby Web&X-Emby-Device-Name=Google Chrome Windows&X-Emby-Device-Id=57325941-c5ce-42f0-94c8-f04cfcbd1e3c&X-Emby-Client-Version=4.7.0.34&reqformat=json

- A can't move on when the plugin is "waiting for user input" as the pop-up doesn't show up.


Happy Easter to all! 🙂 

Link to comment
Share on other sites

vaise

Action button does nothing on latest version for my dynasties show - so no list at all now.

Link to comment
Share on other sites

chef
48 minutes ago, vaise said:

Action button does nothing on latest version for my dynasties show - so no list at all now.

What is the status of the item when the action buttons are un-clickable?

3 hours ago, neik said:

My observations on 1.6.2.9b:

- Sorting to existing tv shows with an unique destination folder seems to be work fine again.

- Sorting unknown movie which was identified via "+" in the fileorganizer pop-up leads to an error:
 

2022-04-17 09:34:44.112 Info Server: http/2 POST https://host1:13985/emby/Library/FileOrganizations/d7c675a00840ab036f4df5d60f4407b3/Movie/Organize?X-Emby-Client=Emby Web&X-Emby-Device-Name=Google Chrome Windows&X-Emby-Device-Id=**************&X-Emby-Client-Version=4.7.0.34&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
2022-04-17 09:34:44.151 Info App: Sorting file /path/to/file/happyfeet.mkv into movie /path/to/destination/movies/Happy Feet (2006)/Happy Feet (2006).mkv
2022-04-17 09:34:44.231 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.34
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Linux version 5.4.0-88-generic (buildd@lgw01-amd64-008) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	System.Exception: System.Exception: Unable to find movie in library matching name happyfeet
	   at Emby.AutoOrganize.Core.InternalFileOrganizationService.PerformOrganization(MovieFileOrganizationRequest request)
	   at Emby.AutoOrganize.Api.FileOrganizationService.Post(OrganizeMovie request)
	   at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.AutoOrganize
	TargetSite: Void PerformOrganization(Emby.AutoOrganize.Model.MovieFileOrganizationRequest)
	
2022-04-17 09:34:44.241 Info Server: http/2 Response 500 to host2. Time: 129ms. https://host1:13985/emby/Library/FileOrganizations/d7c675a00840ab036f4df5d60f4407b3/Movie/Organize?X-Emby-Client=Emby Web&X-Emby-Device-Name=Google Chrome Windows&X-Emby-Device-Id=57325941-c5ce-42f0-94c8-f04cfcbd1e3c&X-Emby-Client-Version=4.7.0.34&reqformat=json

- A can't move on when the plugin is "waiting for user input" as the pop-up doesn't show up.


Happy Easter to all! 🙂 

Thanks @neik

Link to comment
Share on other sites

chef

I was speaking with aaronsomek, the person who started this thread.

As topic has reached over 30 pages, perhaps what we can do is jump into a chat. Then create a new thread when there is a working plugin. 

What do you guys think?

 

If anyone in the future wants to join the PM, you can let us know below. 

Edited by chef
  • Like 3
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...