chef 3746 Posted August 13, 2015 Share Posted August 13, 2015 (edited) Okay, I think then, if the program was setup to automatically run on a schedule (or just after a media scan completes) then using what the API returns as the item path should suffice. The API will return local paths, or path-substitution paths. I'll fix the save paths and get it to Sorry it took a bit longer then expected to write, lol. Edited August 13, 2015 by chef 1 Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 13, 2015 Share Posted August 13, 2015 If I didn't sit close to my server, then I could always remotely control my server and run it locally just as easily BTW: Are you taking requests? Would it be easy to add Collections? Link to comment Share on other sites More sharing options...
chef 3746 Posted August 13, 2015 Share Posted August 13, 2015 (edited) Yep collections can be added easily. I will add another list view window. And I will get it to run automatically after an emby media scan, just in case the media scan can't find a thumb online, this will automatically generate one for you. Edited August 13, 2015 by chef 1 Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted August 13, 2015 Share Posted August 13, 2015 How about use clearart.png if present? Link to comment Share on other sites More sharing options...
chef 3746 Posted August 13, 2015 Share Posted August 13, 2015 (edited) Yep, I will add a checkbox to use clear art instead of backdrop and logo. And a colour plalette to choose what colour to fill in around the clear art for the thumb. Actually we can scan the clear art bitmap and get the most commonly used colour in it and use that as a background fill colour??? Edited August 13, 2015 by chef 2 Link to comment Share on other sites More sharing options...
chef 3746 Posted August 14, 2015 Share Posted August 14, 2015 (edited) Here is one that saves the image. But can only be run locally. I added the boxset option and music artist option as well. Still needs work on the text overlays. All my box sets have thumbs so I can only speculate that it works okay. I almost have clear art working, but not in this version. I also, have almost finished a version which will run "auto-magically" and create any thumbs which are missing. https://dl.dropboxusercontent.com/u/46151346/Thumb%20Maker.zip Edited August 14, 2015 by chef 1 Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 14, 2015 Share Posted August 14, 2015 I have some collections w/o thumbs, will try it now 1 Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 14, 2015 Share Posted August 14, 2015 1. Collections comes back and says it found titles, but lists nothing. I do have several Collections without thumbs so something should be listed. I use the Collections plugin and not the old Boxset [ ] if that makes a difference. 2. I have just one movie thumb without a logo that still runs off. The background is of size 1280x720. The ones that work look to have backdrops all the normal size 3. Thumbs are being saved size 500x281, though most movie thumbs are 1000x562. Is 500x281 what you wanted? 4. Music artist also came back "Found Titles" though list was blank even though I have many artists without a thumb 1 Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted August 14, 2015 Share Posted August 14, 2015 I guess if you keep with the same scheme as fanart, Movie thumbs should be 1000x562 and TV thumbs 500x281. I assume locally means any machine on your LAN. Using on my desktop saves to my server. 2 Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted August 14, 2015 Share Posted August 14, 2015 (edited) Any idea what this Unhandled exception is? Could this be from manual boxsets? Only happens on movies. ************** Exception Text ************** System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at ThumbMaker.MediaLocator.VB$StateMachine_3_MovieNames.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state) Edited August 14, 2015 by Happy2Play Link to comment Share on other sites More sharing options...
chef 3746 Posted August 14, 2015 Share Posted August 14, 2015 This enlarges and saves the thumb images to a proper size of 1000x562, but still samples the thumb image small to fit the window. https://dl.dropboxusercontent.com/u/46151346/Thumb%20Maker.zip Still working on text graphics and boxsets. I believe that the collection plugin maybe why there are no items returning from the query. Link to comment Share on other sites More sharing options...
chef 3746 Posted August 14, 2015 Share Posted August 14, 2015 (edited) Any idea what this Unhandled exception is? Could this be from manual boxsets? Only happens on movies. ************** Exception Text ************** System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at ThumbMaker.MediaLocator.VB$StateMachine_3_MovieNames.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state) This error is happening because the Media Item query from the API is returning two items with the same name. Do you know which two Movies you have which might have the same name but are different? I can fix it... Edited August 14, 2015 by chef Link to comment Share on other sites More sharing options...
chef 3746 Posted August 14, 2015 Share Posted August 14, 2015 (edited) @@Happy2Play I think this should stop the Duplicate Dictionary Entry error from happening now. And also, if the type of thumb is for TV Series then the size is 500x281, and movies will be larger at 1000x562 https://dl.dropboxusercontent.com/u/46151346/Thumb%20Maker.zip Edited August 14, 2015 by chef 1 Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 14, 2015 Share Posted August 14, 2015 Dang, you are kicking these out faster than I can test 1 Link to comment Share on other sites More sharing options...
chef 3746 Posted August 14, 2015 Share Posted August 14, 2015 lol! hahaha! Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 14, 2015 Share Posted August 14, 2015 (edited) Hmm...it's been searching for movies for 20 minutes now and hasn't come back yet. Edit: any way you can make it so you can drag the app to the side? Edited August 14, 2015 by FrostByte Link to comment Share on other sites More sharing options...
chef 3746 Posted August 14, 2015 Share Posted August 14, 2015 (edited) yep, I'll look at the search again. There isn't any Cancellation Tokens added for the Long running tasks... so you may have to quit the program and then start it again. Edited August 14, 2015 by chef Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 14, 2015 Share Posted August 14, 2015 Ok, I had to kill it a couple times before I got it to come back. Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 14, 2015 Share Posted August 14, 2015 (edited) Movie thumbs now save at 1000x562. I don't have an TV series without thumbs so can't test that. The Donald Duck thumb I posted earlier with the small backdrop and no logo now displays correctly. However, it errors when saving http://pastebin.com/KpvWeA6C Edit: Actually all thumbs with text (no logo) get the error in the pasted link. Thumbs with logo save correctly Edited August 14, 2015 by FrostByte Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted August 14, 2015 Share Posted August 14, 2015 @@Happy2Play I think this should stop the Duplicate Dictionary Entry error from happening now. And also, if the type of thumb is for TV Series then the size is 500x281, and movies will be larger at 1000x562 https://dl.dropboxusercontent.com/u/46151346/Thumb%20Maker.zip the dublicate is probably my 2 Star Wars collections. But no longer get error on scan. I get the same error to save text as FrostByte. Currently no text images are saving, Logo are saving. Text appear at random sized. Link to comment Share on other sites More sharing options...
chef 3746 Posted August 15, 2015 Share Posted August 15, 2015 1. I got clear art thumbs working. But only with a black background. I'll get the color customizable shortly. The clear art checkbox will only become enabled if there is clearart in the folder to use. 2. The reason the media Item Name text changes size when adding it to different backdrops was because the backdrops were different sizes. Some would have been 1920x1080 and some would have been slightly smaller (1280x???). Now the text overlay is added after re-sizing. Anyway, I think it is fixed. 3. I made the form movable on the desktop. It's pretty close to being useful. https://dl.dropboxusercontent.com/u/46151346/Thumb%20Maker.zip Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted August 15, 2015 Share Posted August 15, 2015 (edited) I still get unhandled exception when trying to save Item Name text (TV and Movies). Same error with clearart selected (TV and Movies). Backdrop + Logo saving ok for Movies but not for TV (no error but nothing is saved). ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at ThumbMaker.ShowThumb.VB$StateMachine_8_SaveButton_Click.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state) Edited August 15, 2015 by Happy2Play Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted August 15, 2015 Share Posted August 15, 2015 (edited) Found TV's issues. It is saving (backdrop+logo) thumb to the TV Series directory instead of the series directory. Could the list be sorted alphabetically? Edited August 15, 2015 by Happy2Play Link to comment Share on other sites More sharing options...
chef 3746 Posted August 15, 2015 Share Posted August 15, 2015 Yes I can sort the list alphabetically. I had better fix that TV series tier issue quickly. Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 15, 2015 Share Posted August 15, 2015 I'm getting "No Titles" for all options (Movies, TV, etc) though I have movies and Collections with no thumb file Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now