pms-mlx (12-04-01 v0.7)

Download and discuss official beta builds here

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby squadjot » Wed Aug 10, 2011 12:55 pm

taconaut wrote:This is already possible.

Oh ok great

taconaut wrote:This is planned as a plugin system (I don't want to write them all (rottentomato, nfo, imdb...)) myself ;)), but nowhere started.

I'd love to write some plugins.. just dont know how to (i've done other lingos than java.. but have no clue how to compile/test up against pms)

It would be cool if you could use similar equation to weed out unwanted files (sample files, 2 channel mp4, etc etc), but maybe this would be better to set as a "search" filter, so these file would be skipped totally.
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby taconaut » Wed Aug 10, 2011 4:21 pm

I'd love to write some plugins.. just dont know how to (i've done other lingos than java.. but have no clue how to compile/test up against pms)

The plugin system for data import doesn't exist yet. It will take quite some time, as many other things have to be done before that.

There are already three types of plugins available though. Here's a brief description of where they show up and an example coded for pms-mlx that can be checked out.
1) The ones included in the original pms. E.g. the plugin incrementing play counts in the DB (http://pms-mlx.svn.sourceforge.net/view ... herPlugin/)
2) The plugin folders which can be added to the tree view in pms-mlx. E.g. the file system folder (http://pms-mlx.svn.sourceforge.net/view ... ialFolder/) which behaves exactly the same way as the original implementation (the code has been copy-pasted)
3) Plugins letting add new functionality when showing a file as a folder. E.g. the tmdb rater plugin, which lets you rate a movie on tmdb from the ps3 (http://pms-mlx.svn.sourceforge.net/view ... TmdbRater/)
If you load them into eclipse, you can right-click onto the build.xml file and run it as an ant task. This will produce a jar that can be dropped into the plugin directory of pms.

It would be cool if you could use similar equation to weed out unwanted files (sample files, 2 channel mp4, etc etc), but maybe this would be better to set as a "search" filter, so these file would be skipped totally.

Can't you do that with a negation of a condition; say 'file name does not contain sample file' or 'duration is less then 2min'?
If you always wanted to have your most recent videos at the top of the folder in the ps3 or wished you could group all videos with the same genre in one folder, have a look at pms-mlx
taconaut
Project Member
 
Posts: 955
Joined: Sat Apr 11, 2009 12:29 am
Location: Switzerland

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby squadjot » Thu Aug 11, 2011 1:40 pm

Can't you do that with a negation of a condition; say 'file name does not contain sample file' or 'duration is less then 2min'?

I'm a bit confused =) - where should i use this negation, you mean do this in library?.. That's what i did. but the files will still shown on XMB..
that's why i asked if i could "apply" the filters in Library on the actual XMB structure.

Sorry if i'm thickheaded here.
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby taconaut » Thu Aug 11, 2011 3:42 pm

Don't worry about being thickheaded, I'm rather happy to find out what people don't understand to also improve the wiki :mrgreen:
The filters set in the library are there to limit the entries shown in the grid; they are not influencing what will show up on the ps3 though. To filter content on the ps3, filter have to be added to the folders in the 'Tree' view.
Assuming you have kept the folder 'Video' created by default, if you don't want to have e.g. any videos shorter then two minutes showing up (in any folder) on the ps3, you can edit the properties of the 'Video' folder add a condition 'duration is greater then 2 minutes' in the filtering tab. If you save the changes and go to any child folder of 'Video' and show the filter tab in the editing dialogue, '1 conditions inherited' will be displayed; that's the one you've just created.

Hope it clarifies things a bit.
If you always wanted to have your most recent videos at the top of the folder in the ps3 or wished you could group all videos with the same genre in one folder, have a look at pms-mlx
taconaut
Project Member
 
Posts: 955
Joined: Sat Apr 11, 2009 12:29 am
Location: Switzerland

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby squadjot » Thu Aug 11, 2011 4:48 pm

Ahhhchhaaaa.. NOW were talking :D ..thanks, totally overlooked that..

Edit: this is getting "fists-shaking-in-the-air-win-like"-great!

Ok, two ideas for minor features..

1. the ability to merge movie.cd1 movie.cd2 into one item
2 A way to show if/wich language subtitle is avail (So far i've been naming my folders like myMovie [2011] [DK Subs], Anohter Movie [2011] [Eng Subs])

And last, support for Meta file would be great..because tmdb only recoqnizes about a 3rd of my movies. =D

Anyways.. really starting to like this..
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby taconaut » Fri Aug 12, 2011 7:29 am

Haha, nice!

1. the ability to merge movie.cd1 movie.cd2 into one item
It's not that easy to do, but I've added a feature request to remember it (http://sourceforge.net/tracker/?func=de ... id=1566083)

2 A way to show if/wich language subtitle is avail (So far i've been naming my folders like myMovie [2011] [DK Subs], Anohter Movie [2011] [Eng Subs])

This one's easy, I'll add two new variables which can be used in the mask. %audio_languages will give something like 'English (AC3), German (DTS)' and %subtitle_languages 'English, French, Danish' (might also be 'en, fr, de' not sure what is currently being returned).

And last, support for Meta file would be great..because tmdb only recoqnizes about a 3rd of my movies. =D

This will be part of the plugin system for file info import ;) Meanwhile, have you tried using the filename_replace_expressions.txt (http://sourceforge.net/apps/mediawiki/p ... neral#TMDb) to clean up file names before querying tmdb? The file has to be created in your profile directory! Or are the films you're nalking about not on tmdb?
If you always wanted to have your most recent videos at the top of the folder in the ps3 or wished you could group all videos with the same genre in one folder, have a look at pms-mlx
taconaut
Project Member
 
Posts: 955
Joined: Sat Apr 11, 2009 12:29 am
Location: Switzerland

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby squadjot » Fri Aug 12, 2011 12:25 pm

This one's easy, I'll add two new variables which can be used in the mask. %audio_languages will give something like 'English (AC3), German (DTS)' and %subtitle_languages 'English, French, Danish' (might also be 'en, fr, de' not sure what is currently being returned).

Will this work with SRT's? (which i mainly use).. i guess that requires the app to use wordlist of each language to compare each subtitle with?

This will be part of the plugin system for file info import ;) Meanwhile, have you tried using the filename_replace_expressions.txt (http://sourceforge.net/apps/mediawiki/p ... neral#TMDb) to clean up file names before querying tmdb? The file has to be created in your profile directory! Or are the films you're nalking about not on tmdb?

It's a naming problem i guess. I just build a small tool that now also can rename files ( based on IMDB data )
Anyways, interesting to know about filename_replace_expressions.txt aswell.


A little downside thing: i noticed thumbnail loading/generation is slower compared to vanilla PMS
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby taconaut » Fri Aug 12, 2011 1:14 pm

Will this work with SRT's? (which i mainly use).. i guess that requires the app to use wordlist of each language to compare each subtitle with?

Just checked for an srt file and it shows up as 'und' (the mechanism from pms is being used to read file properties, so it will have the same result as the original). For now I'm not going to automate this, but when editing of the file properties will be available in the library view, they will be editable manually.
The mask '%name (%year) - %rating_percent/100 [%rating_voters] - Audio: %audio_languages - Subtitles: %subtitle_languages' results in the attached image

It's a naming problem i guess. I just build a small tool that now also can rename files ( based on meta-file data ^^ )

Cool, I'll have a look
Attachments
subs.PNG
subs.PNG (5.35 KiB) Viewed 349 times
If you always wanted to have your most recent videos at the top of the folder in the ps3 or wished you could group all videos with the same genre in one folder, have a look at pms-mlx
taconaut
Project Member
 
Posts: 955
Joined: Sat Apr 11, 2009 12:29 am
Location: Switzerland

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby squadjot » Fri Aug 12, 2011 2:19 pm

Ahh, you mean i should name my subtitles files with correct language ID.
I was onto something like litteraly detecting the language by comparing to a wordlist :P..

I see.. right now i just have one subtitle with the same filename, per movie. But i guess using language ID's may be more elegant (and necesary if i want to use your new feature).
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: pms-mlx <- media library extension (21.06.11 v0.4 [beta]

Postby taconaut » Fri Aug 12, 2011 3:09 pm

Hehe, for srt files I wasn't suggesting any solution :p The subtitles in the above print screen are all embedded ones.
The subtitles which pms detects by default are being used; AFAIK these are only the ones named <filename>.srt. Changing the mechanism in the original pms code to detect the language by adding a suffix might be done e.g. <filename>.en.srt.
For now the only solution is to change it in the DB, which is a pain. You have to find the film you want in the VIDEO table, get its FILEID, find the subtitles in the SUBTITLES table and edit the column LANG...
If you always wanted to have your most recent videos at the top of the folder in the ps3 or wished you could group all videos with the same genre in one folder, have a look at pms-mlx
taconaut
Project Member
 
Posts: 955
Joined: Sat Apr 11, 2009 12:29 am
Location: Switzerland

PreviousNext

Return to Beta Builds

Who is online

Users browsing this forum: No registered users and 6 guests