Sign up here and you can log into the forum!

** updated 01/06/2013** Plugin: Trailers 2.8

The WDTVExt plugin depot. Plugins/libraries/code only

Re: ** updated 3/3/12** Plugin: Trailers 2.1   

Postby mad_ady » Tue Mar 13, 2012 12:14 am

anybody know of a replacement for "find" that would be any faster
only reason I'm using find at the folder level, is I don't know the movie file extension yet
the meta file would be something like Batman.avi.tgmd and of coarse it could be any possible file extension .avi. .m2ts .iso .mkv , etc ........


Wild idea: I doubt it would work, but you can try to open a file whose name you don't fully know by using wildcards. Hopefully they will be expanded by the script on the fly and you will get one match... (e.g. Batman.*.tgmd)
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: ** updated 3/3/12** Plugin: Trailers 2.1   

Postby KAD » Wed Mar 14, 2012 8:23 am

I think I will try this, I have nothing in the code to handle multiple returned results anyways,

and I think sed will handle the wildcard just fine, so it will look something like this
Code: Select all
var metafile = ("'" + media.path + media.name + ".*.tgmd'",this.debug.Lib);
var IMDBID = executeCmd("sed -n -e 's/.*<id>\\(.*\\)<\\/id>.*/\\1/p' \"" + metafile + "\"",this.debug.Lib);


also a teaser, last night I added the ability to choose the search criteria (Local Trailer, TGMD, NFO, Name Search)
enable or disable any combination you like, depending on what is selected this results in substatial speed increases
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4005
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby KAD » Wed Mar 14, 2012 7:15 pm

well the above didn't work,

but first post has been updated with version 2.2 which has customizable search options

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4005
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby Jeffmaster » Sat Mar 31, 2012 8:59 am

Hi the last time i added a plugin was a long time ago so i can't remember what to do now anymore!


i put the "Trailer" folder in the ".wdtvext-plugins" folder. then my wdtv identified the trailers plugin and i enabled it. i did a hard reset and then i tried to press the stop button at a movie but nothing happens. what do i miss?
Jeffmaster
WDTVer
 
Posts: 24
Joined: Wed Sep 07, 2011 12:34 pm

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby KAD » Sat Mar 31, 2012 9:32 am

to quote release notes from version 2.0

Change Play Trailer to use Search Button (now compatible with MediaMark)


KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4005
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby Jeffmaster » Sat Mar 31, 2012 10:08 am

I'm sorry, what does this mean? When i press the search button, i am at the search-function
Jeffmaster
WDTVer
 
Posts: 24
Joined: Wed Sep 07, 2011 12:34 pm

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby KAD » Sat Mar 31, 2012 10:38 am

is the plugin enabled?
what type of media are you browsing
local, network, media server
do you see the icon on screen indicating a trailer was found

I've never had a search box come up

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4005
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby Jeffmaster » Sat Mar 31, 2012 11:43 am

Yes i enabled the plugin and i did a hard reboot.

What type of media? well: movie-media like .avi or .mkv or something like this

my harddisc is connected directly to my wdtv. my wdtv is connected to my wlan-router.

i have not seen any icons so far, where should they pop up?
Jeffmaster
WDTVer
 
Posts: 24
Joined: Wed Sep 07, 2011 12:34 pm

Re: ** updated 3/14/12** Plugin: Trailers 2.2   

Postby KAD » Sat Mar 31, 2012 2:53 pm

top left hand corner, it would be pretty obvious

edit: what firmware are you on?
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4005
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: ** updated 5/20/12** Plugin: Trailers 2.3   

Postby KAD » Sun May 20, 2012 12:17 pm

first post updated v2.3 available
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4005
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest