• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 13
MediaReader - Media Manager & NFO Generator (Open Source Java cross-platform support)
#46
feikenberg Wrote:On OSX 10.5.7 i get an error message if I want to browse the IMDB:

Could not initialize Webbrowser:

XULRunner Ordner: /Applications/Mediareader/xulrunner/macosx/xulrunner
Ordner für Profil: nicht benutzt
Platform: OSX
Java: 1.6.0_07-b06-57, Apple Inc.

--------------------------------------------------

java.lang.NullPointerException
at org.mozilla.browser.MozillaConfig.setXULRunnerHome(MozillaConfig.java:47)
at org.mozilla.browser.MozillaInitialization.initialize(MozillaInitialization.java:94)
at org.mozilla.browser.MozillaWindow.<init>(MozillaWindow.java:146)
at org.mozilla.browser.MozillaWindow.<init>(MozillaWindow.java:116)
at common.Ut.initMozilla(Ut.java:40)
at mediareader.MediaReaderView.<init>(MediaReaderView.java:161)
at mediareader.MediaReaderApp.startup(MediaReaderApp.java:17)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Sorry, didn't see this response at all. Please use the 24hourloop forum if possible, I am not monitoring all threads here.

I will have to look into this in more detail. Xulrunner is the gecko engine I have started using (Mozilla). As I mentioned, I have only tested this one under Linux and and Win.

If you want to work with me on this I will get it going under Mac.
Reply
#47
Advocate Wrote:This basically doesn't seem to work under OS X unless you're using the exact naming convention that Media Reader is looking for. Shame really.

You can define under 'Profile' what regular expressions you want to use. Right now it only supports one for TV and one for movies but I could make it a list if there is a need. I have added a list for stacking support (not released, yet), so there is no reason why not a list for the other stuff.

Did you see this?

Please us the 24hourloop forum if possible, I am not monitoring all threads here.
Reply
#48
Doraemonn Wrote:Is there no way to edit the regular expressions this thing uses to identify movies and match them up to what XBMC uses?

Yes, check 'Profile'. Currently one per movies and one per TV but it could be multiples if you would prefer.
Reply
#49
I see:

- Season/Episode matcher
- Series matcher

An I to assume the Series matcher also applies to movies?

Thanks.
brave little meme loves you.
Reply
#50
Doraemonn Wrote:I see:

- Season/Episode matcher
- Series matcher

An I to assume the Series matcher also applies to movies?

Thanks.
For movies it assumes the name of the file. How do you need this to work differently?
Reply
#51
rernst Wrote:For movies it assumes the name of the file. How do you need this to work differently?

Well an option to look a movie up by folder name would be more useful to XBMC users - The folder name containing a movie file and all its attached meta-media (thumbnails, nfo's etc.) is usually better structured than the name of the movie file itself, which could frankly be gibberish due to scene release abbreviations, extra tags etc. For example:

Movies/The International (2009)/ti.proper.1080p.bluray.avi

Do you think this is a likely addition to your program?
brave little meme loves you.
Reply
#52
Doraemonn Wrote:Well an option to look a movie up by folder name would be more useful to XBMC users Smile
If you could take it to the 24hourloop forum other Media Reader users could benefit from this discussion as well.

I will respond there. Sorry to be so harsh ...
Reply
#53
Does this currently work with media flagging a la the studio tag workaround in Aeon and Serenity??
Reply
#54
theophile Wrote:Does this currently work with media flagging a la the studio tag workaround in Aeon and Serenity??

Enlighten me - what is the studio tag workaround? Media Reader tracks studio information but I am not sure what you refer to as 'workaround'. Can you explain what you are looking for?
Reply
#55
rernst Wrote:Enlighten me - what is the studio tag workaround? Media Reader tracks studio information but I am not sure what you refer to as 'workaround'. Can you explain what you are looking for?

Sure.

It's basically a skin-based method for identifying information such as video/audio codecs, video source, and other unique information and displaying corresponding flags in the display, as in this screenshot, on the left.

Image

This is done by including the relevant information in the <studio> tag of the .nfo. MIP has support for this and there is a standalone app (Media Flag Updater) that will do it as well.

The method is described in some detail here:

http://forum.xbmc.org/showthread.php?tid=50138

If MediaReader were able to support media flagging in this manner, I wouldn't have to fire up Windows anymore! Smile
Reply
#56
Cool. I didn't know this existed. I will add it. I will repost this at 24hourloop to keep track of it. I am in the last throes of finishing up another drop for Friday as I am leaving town for two weeks. But I'd target it by the end of the second week of June.

Thanks for pointing it out.
Reply
#57
0.45 Beta
Various and sundry bugfixes.

- Revamp of the user interface. Hope it is more palatable now.

- Fixed some idiosyncacies in the cooperation of the browser engine and the main code caused by different event dispatch threads. Should be a tad faster now, too.

- Fixed a bug where renaming a movie made the movie disappear from the library and only reappear after 'process new'.

- Added 'rescrape' function which in conjunction with the in-program movie playback makes identification of titles quite easy.

- Added the ability to specify stacking patterns.

- MR now recognizes season directories as 'Season##' or 'season ##' (and variations thereof).

- Added the ability to add/delete artwork for movies, both locally from your computer or via locating the image through the browser.

- Startup complained about not being able to set the right look-and-feel under certain Linux configurations.

- On Gtk 2.2 platforms MR now picks the Java standard look and feel. There is a known deadlock situation rooted in a JVM malfunction using the mozilla engine which is slated to be fixed by Sun. For now, it's the metal look and feel ;-(.

Users say it runs fine on the Mac.

Get it here.
Reply
#58
well, allthough I appreciate the use of java being on mac or linux, I have quiet some things to criticize here:
- first of all, this app is still in a very immature phase, I would say alpha more than beta...but the point is: it changes an existing collection without any warning. In my case that meant messing things up more than adding missing informations. But I'll come to that later.
- regarding movies, it changes the file name, then adds other files (nfo, tbn, fanart) using that new name. That's what I think is not ok:
- the matching of the imdb is not well done (I have worse results than using xbmc).
- the choice of renaming the file is not good either: having movies in different languages, I prefer to keep the translated movie names: why make everything english? When you add wrong matches to translations, you may guess the mess...
- the choice of adding fanart and picture should probably be a choice as well. default should add the nfo only. or make that a choice...
- the existing subtitle files are "orphaned". they're not renamed and so will be lost most of the times.
- all the movies consisting of 2 parts (2 cds) are not recognized as such and instead treated as the same film twice. For "Clerks" and "Clerks 2" both in two parts I now have 4 times the same "Clerks" movie...as example.
- the browser in os x is buggy, so I can not correct the wrong matches - the error was already posted here.

So now what I would change:

- Add multipart movie regexp - should be default to avoid the mentioned error.
- do definitely a better imdb match handling: it might be imdb's fault, but the first match is the correct one on a rather low rate. One option could be that of sorting the search results, another to look for exact matches only. Yet another that of using scraperxml (--> search).
- consequently do all the automated steps only on the exact matches. or make this a choice.
- all the renaming and adding: I'd suggest to store all those infos in a tmp folder in the "batch-phase". Then show the results to the user and apply them only if approved (possibly giving choice to check what to apply/not apply...but that could become complicated)
- pre-existing files must be respected: exisiting srt/sub etc. must be taken into account
- an advanced option could be that of moving a all-files-in-one-folder structure to a each-movie-in-its-subfolder and/or back.
- a new feature which is missing is the already mentioned studio tag, probably the one tag making nfo files most useful as of now. the nicest feature of such an implementation would be that of opening the movies to get infos from the movie itself like resolution (--> sd, 720, 1080 etc.), audio + subs etc. Only the studio name itself must be grabbed from the filename (unless that can be fetched from imdb as well...). There are lots of threads about this.

I made screenshots of the batch results. That's because they're inserted line by line in a list control instead of concatenated in a big text field (so I could have copied/pasted the whole thing out). I will not post them here (20 files), but if you're interested, I may email them.

some examples of my matches:
leg dich nicht mit zohan an.mpg (german title) --> matched as "vento di primavera (1958)" (italian...) Shocked
renaissance.mpg --> star trek - first contact (1996) [wtf*k%&£$!!]Stare
the nines (2008) --> dogville (2003) Oo
and what about the rocker matched as The Hurt Locker (2008) ??!!!Sad

p.s. the vlc player chosen as movie player does not work (or the play function anyway...). And I'm using 0.44.
Reply
#59
rickx Wrote:well, allthough I appreciate the use of java being on mac or linux, I have quiet some things to criticize here:
- first of all, this app is still in a very immature phase, I would say alpha more than beta...but the point is: it changes an existing collection without any warning. In my case that meant messing things up more than adding missing informations. But I'll come to that later.
- regarding movies, it changes the file name, then adds other files (nfo, tbn, fanart) using that new name. That's what I think is not ok:
- the matching of the imdb is not well done (I have worse results than using xbmc).
- the choice of renaming the file is not good either: having movies in different languages, I prefer to keep the translated movie names: why make everything english? When you add wrong matches to translations, you may guess the mess...
- the choice of adding fanart and picture should probably be a choice as well. default should add the nfo only. or make that a choice...
- the existing subtitle files are "orphaned". they're not renamed and so will be lost most of the times.
- all the movies consisting of 2 parts (2 cds) are not recognized as such and instead treated as the same film twice. For "Clerks" and "Clerks 2" both in two parts I now have 4 times the same "Clerks" movie...as example.
- the browser in os x is buggy, so I can not correct the wrong matches - the error was already posted here.

So now what I would change:

- Add multipart movie regexp - should be default to avoid the mentioned error.
- do definitely a better imdb match handling: it might be imdb's fault, but the first match is the correct one on a rather low rate. One option could be that of sorting the search results, another to look for exact matches only. Yet another that of using scraperxml (--> search).
- consequently do all the automated steps only on the exact matches. or make this a choice.
- all the renaming and adding: I'd suggest to store all those infos in a tmp folder in the "batch-phase". Then show the results to the user and apply them only if approved (possibly giving choice to check what to apply/not apply...but that could become complicated)
- pre-existing files must be respected: exisiting srt/sub etc. must be taken into account
- an advanced option could be that of moving a all-files-in-one-folder structure to a each-movie-in-its-subfolder and/or back.
- a new feature which is missing is the already mentioned studio tag, probably the one tag making nfo files most useful as of now. the nicest feature of such an implementation would be that of opening the movies to get infos from the movie itself like resolution (--> sd, 720, 1080 etc.), audio + subs etc. Only the studio name itself must be grabbed from the filename (unless that can be fetched from imdb as well...). There are lots of threads about this.

I made screenshots of the batch results. That's because they're inserted line by line in a list control instead of concatenated in a big text field (so I could have copied/pasted the whole thing out). I will not post them here (20 files), but if you're interested, I may email them.

some examples of my matches:
leg dich nicht mit zohan an.mpg (german title) --> matched as "vento di primavera (1958)" (italian...) Shocked
renaissance.mpg --> star trek - first contact (1996) [wtf*k%&£$!!]Stare
the nines (2008) --> dogville (2003) Oo
and what about the rocker matched as The Hurt Locker (2008) ??!!!Sad

p.s. the vlc player chosen as movie player does not work (or the play function anyway...). And I'm using 0.44.

Thanks for the input. It would have been nice to see them on the code's forum but it is worthwhile anyhow.

Let me make a couple of comments:

- The title matching between XBMC and MR is identical. The lookup is a simple IMDB search. Try 'Battle of Algiers' or 'Don't let me die on Sunday'. Both will give you the same results. MR only goes against IMDB.COM not IMDB.DE.

- If you would read the readme you would see that it does renames. It distinguishes it from other scrapers, good or bad. I wanted something that would correct my spelling errors and generally look at a library and know what is in it without having to resort to anything. If you think that is not the right approach, either do not use it or wait until it supports matching without rename. If you had looked at the code's forums you would have seen a post asking for how many folks wanted this feature. So far only a single person asked for it.

- Adding the thumbnail and fanart in addition to the nfo substantially speeds XBMC up. But it's a good suggestion to make it optional. Why did you not post it under suggestions at the site?

- You can rename the file to what you want. Once there is an nfo for it, MR will not touch it anymore. The Rename is in MR 0.44+ There is a popup selection.

- I think you repeated the fanart and thumbnail part twice.

- Moving into it's own folder. Great suggestion. Sort of contradicts 'leave movies alone' but why not? As you or somebody else mentioned the Aeon mod more or less requires it. I will need to do it if I want to use it myself.

- There is a studio tag. It contains the studio at the moment which is what it initially (and for other skins) was meant to do. It does not (yet) support the XBMC mod. I figured it is a good idea to cover standard XBMC first is a priority. I answered elsewhere that I will try to get it into the drop second week of June.

- Movie codec analysis etc. is already in the works. There are only so many hours in a day. I wanted to do it one way but then stumbled upon something more elegant so it took me a couple more days to sort out.

- Title examples you name: Please key them into IMDB.COM and you will see that the results match exactly what IMDB gives you. THERE IS NO MULTILANGUAGE SUPPORT IN IT, YET, (i.e. wenn jemand die Zeit nehmen moechte es zu uebersetzen (ich hab noch nicht einmal ein Deutsches Keyboard)). That is at the very, very, very bottom of my list. If you only want it to scratch IMDB.DE instead of IMDB.COM it can be done (although I am not sure about the tags, might have to check).

- ScraperXML - You have to be kidding. You must be one of the very few that can code that. I looked at it and ditched the idea. I could have clone the XBMC code but it just wasn't the way I thought it should work. You do understand that the other day someone asked for an app to edit advancedsettings.xml. I believe there are is a 95 to 5% ration of unskilled vs. skilled users. The unskilled users are probably so intimidated by the advanced heads that they rarely post.

'Only exact matches' can be done, no problem.

- Giving the use the option to accept IMDB response: Absolutely on the list. There already is an option for that in the profile. It just doesn't do it, yet. I had a thousand movies to process and didn't want to be prompted. When processing only new ones that makes sense. Cleaning up the mismatches from 1,000 took half an hour. Having been prompted would have taken days. But, as I said, it's halfway in. I started off with what Media Companion does and then wanted to add a feature set I liked.

- How do I figure out that IMDB hands back a translation instead of the English title? It bothers me, too, but I see no way of doing it. With all my movies it did it it exactly three times. It picked maybe 5% incorrect titles. I thought that was pretty good for my (English) collection.

- Stacking: The very version I posted contains the ability to specify stacking criteria. Since I am leaving town in an hour I did not get to implement more. It's the next thing on the list.

- Subtitle support (actually arbitrary like named files) will be in the next drop.

- The help (granted, outdated) mentions that the movie player must be able to accept the file name as an argument. The MR board posts the question whether you want an integrated player. One 'nice to have response' that is why it's not in. If more folks verbalized a need, it would probably become more of an issue. I initially had integrated VLC player support (using the VLC tool kit) but then ditched it since it entailed all sorts of considerations. The player I am looking at integrating is the Java media framework (which theoretically should be able to play all Directshow stuff, not sure about Linux and Mac. I can test Linux but I am in the dark about the Mac. Maybe I can buy a used small box somewhere. Oh no, I remember now, there is no such thing as an affordable Mac. Ok, just a dig. Sometimes I can't help it.)

Browser support under Mac - I have been told it works, all I can say. Since your response comes in this forum (which I normally do not track for bugs/enhancements) I have a hard time figuring out whether it really does. You could have responded to the statement 'It works' by the Mac user on the MR forum.

Alpha vs. beta: It's pretty stable and has few bugs but misses features (which it always will). Ergo my choice. Notwithstanding that I will remove the alpha/beta label altogether. You make the choice.

Don't get me wrong: I really appreciate the input. It probably doesn't help much *here* so I will copy the whole thing to the MR forums. (which would also have allowed you just to paste the screenshots in). A little less confrontational would have been nice (aber Deutsche sind nicht immer so taktvoll, weiss ich selber als Deutscher).

So, if you can work with me in the spirit of cooperation you will likely get all your features as most of them are either already done or on the list. I am a pretty fast coder but cross-platform support adds another degree of complexity. This is the only piece of code that does it, so be patient.

Again, thanks for the input.
Reply
#60
Using Linux Mepis
Java™ SE Runtime Environment (build 1.6.0_13-b03)

Code:
Jun 8, 2009 11:04:14 PM org.jdesktop.application.Application$1 run
SEVERE: Application class mediareader.MediaReaderApp failed to launch
java.lang.ClassCastException: java.util.regex.Pattern cannot be cast to java.lang.String
        at common.Profile.writeProfile(Profile.java:359)
        at common.Profile.writeDefaultProfile(Profile.java:332)
        at common.Profile.readProfile(Profile.java:401)
        at mediareader.MediaReaderView.<init>(MediaReaderView.java:107)
        at mediareader.MediaReaderApp.startup(MediaReaderApp.java:18)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class mediareader.MediaReaderApp failed to launch
        at org.jdesktop.application.Application$1.run(Application.java:177)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassCastException: java.util.regex.Pattern cannot be cast to java.lang.String
        at common.Profile.writeProfile(Profile.java:359)
        at common.Profile.writeDefaultProfile(Profile.java:332)
        at common.Profile.readProfile(Profile.java:401)
        at mediareader.MediaReaderView.<init>(MediaReaderView.java:107)
        at mediareader.MediaReaderApp.startup(MediaReaderApp.java:18)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        ... 8 more
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 13

Logout Mark Read Team Forum Stats Members Help
MediaReader - Media Manager & NFO Generator (Open Source Java cross-platform support)1