Sign up here and you can log into the forum!

Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)

The WDTVExt plugin depot. Plugins/libraries/code only

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby KAD » Thu Apr 07, 2011 1:20 pm

@mostovoi,

I've never used it, but sounds like this http://forum.wdlxtv.com/viewtopic.php?f=48&t=445 is what your looking for
playlistgen plugin

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby mostovoi » Thu Apr 07, 2011 1:33 pm

KAD wrote:@mostovoi,

I've never used it, but sounds like this http://forum.wdlxtv.com/viewtopic.php?f=48&t=445 is what your looking for
playlistgen plugin

KAD


Hi KAD,

I read about it and sounded great but the thing is that in what I am looking for the criteria for generating the playlists is based on human interaction, that's why I focused on the MM. I haven't used the PlaylistGen but think it automatically creates the playlists based on parameters on the tgmd-files.

Thanks tho for your quick reply.
mostovoi
n00b
 
Posts: 5
Joined: Sat Apr 02, 2011 3:31 am

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby recliq » Fri Apr 08, 2011 3:02 am

What you are looking for should be implemented as a separate plugin. Some code can be borrowed from MM to do this but it's a completely different plugin.

In fact if i think about it most of the MM code can be used for this (instead of writing the moviehash to a logfile we could write the filename of the mp3 to a playlist file (or delete it from the list))
But since the function will be completely different purpose this should not be implemented in MM.

I will have a look at the weekend to get a simple first start on this plugin if i find some time...
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby mostovoi » Fri Apr 08, 2011 10:44 am

Hi Recliq,

I've been working in the adaptation myself but it's not ready yet to make it public...still some things to work around...but if you want I can send you my code somehow (maybe a PM but I have never done it so I don't know how to do it... :oops: ) or just publish it here...but as I said it is not done yet...so no use for the public.

I would like to clean it up a bit...but certainly I will not be as quick as you :) ..so i will need sometime...but I am enjoying it.

I am trying to add more functionality...like been able to choose what playlist you want the song to go to...but maybe that will be version 2.

I read that there was some problem with the playlists that worked only until a certain depth in the filesystem...I've done a test myself and it looks as if you can not put an absollute path for the file inside the playlist...is that true? ¿what's the problem with the filesystem & playlists?

Well as you said if you don't see it inside MM, maybe we should just move the conversation to a new plugin....I am calling mine PlaylistEN...to indicate you can create the plugin while listening to your music.

What do you think? Should we move it to another thread? Do you want me to send you my code...it's a little bit embarrasing since it's basically yours...with some mistakes of mine ;)

Cheers
mostovoi
n00b
 
Posts: 5
Joined: Sat Apr 02, 2011 3:31 am

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby recliq » Sat Apr 09, 2011 2:33 am

It's always nice to hear when someone tackles the prob himself and gets his hands dirty :mrgreen:

Since I don't have much time for playing around lately keep going!
Once you have a working version you think you can publish make a new thread in WDTVExt Plugins.

If your plugin is just the plugin file you can simply paste it into code tags, I think file attachments don't work for all users, so if you need to provide an archive with multiple files for your plug you'd have to upload it somewhere and posrt a link in the forum.

Take your time for developing, it will get more and more easy when you get into it, but be careful you can get addicted... :ugeek:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby RMerlin » Sat May 07, 2011 9:55 pm

Recliq, do you think it would be technically doable to adapt Media Mark to also work with medias played through DLNA?

Here's a sample debug output when playing a file with MediaMark debugging enabled:

Code: Select all
MediaMark: [onPageKey] Key: 35
MediaMark: [checkFile] file: all*pn/0*pn/11*fv/11940
MediaMark: [getMovieHash]
MediaMark: [getMovieHash] file: all*pn/0*pn/11*fv/11940
MediaMark: [getMovieHash] hash : ERROR opening file all*pn/0*pn/11*fv/11940
MediaMark: [searchHash] hash: ERROR opening file all*pn/0*pn/11*fv/11940
Lib: [executeCmd]  cmd: grep 'ERROR opening file all*pn/0*pn/11*fv/11940' /tmp/mnt/13144a57-30f6-48c6-abcb-c2c6c05501c9/.mediamark/mediaMark.log
MediaMark: [searchHash] hash NOT found!
MediaMark: [setMark] false
MediaMark: [checkFile] hash NOT found!
MediaMark: [onPageCreated] page: preopen.xml
MediaMark: [onPageKey] Key: 38
MediaMark: [selectionFix]
MediaMark: [checkFile] file: all*pn/0*pn/11*fv/11940
MediaMark: [getMovieHash]
MediaMark: [getMovieHash] file: all*pn/0*pn/11*fv/11940
MediaMark: [getMovieHash] hash : ERROR opening file all*pn/0*pn/11*fv/11940
MediaMark: [searchHash] hash: ERROR opening file all*pn/0*pn/11*fv/11940
Lib: [executeCmd]  cmd: grep 'ERROR opening file all*pn/0*pn/11*fv/11940' /tmp/mnt/13144a57-30f6-48c6-abcb-c2c6c05501c9/.mediamark/mediaMark.log
MediaMark: [searchHash] hash NOT found!
MediaMark: [setMark] false
MediaMark: [checkFile] hash NOT found!
MediaMark: [onPageCreated] page: video_run.xml
MediaMark: [searchHash] hash: ERROR opening file all*pn/0*pn/11*fv/11940
Lib: [executeCmd]  cmd: grep 'ERROR opening file all*pn/0*pn/11*fv/11940' /tmp/mnt/13144a57-30f6-48c6-abcb-c2c6c05501c9/.mediamark/mediaMark.log
MediaMark: [searchHash] hash NOT found!
MediaMark: [createEntry]
MediaMark: [createEntry] hash: ERROR opening file all*pn/0*pn/11*fv/11940
Lib: [executeCmd]  cmd: echo 'ERROR opening file all*pn/0*pn/11*fv/11940;1304837786.431' >>/tmp/mnt/13144a57-30f6-48c6-abcb-c2c6c05501c9/.mediamark/mediaMark.log


I guess it could store the actual path instead of an hash when the path isn't a valid one (like in this case) instead of storing the error message. But then, I'm not sure that this path won't change whenever the DLNA database gets changed, so that might not work with all DLNA servers :(

EDIT: Pasted a new log after I fixed a bug in MediaMark - it wasn't storing anything when using a file backend instead of SQL backend.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby recliq » Sun May 08, 2011 3:31 am

Maybe possible but not quite easy... MeadiaMark would have to query the DNLA server to get the actual file to pass it to movieshash. Then again I don't know if moviehash accepts non local files, I don't think so.
My guess is this won't work, at least not with moviehash, but I will have a look...
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby RMerlin » Mon May 09, 2011 9:34 am

recliq wrote:Maybe possible but not quite easy... MeadiaMark would have to query the DNLA server to get the actual file to pass it to movieshash. Then again I don't know if moviehash accepts non local files, I don't think so.


That wouldn't work anyway, as DLNA-streamed files aren't necessarily exposed through a network share. That would require moviehash to generate its hash in a different way. I wonder if DLNA can provide any kind of unique file information if you query it using the path it just gave you, that could be used as an alternative whenever moviehash fails to access the file (which in most case would mean the file wasn't accessed through the filesystem but through DLNA or another streaming method).
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby sifusanders » Thu Jun 02, 2011 7:45 am

RavRob seemed to have the same problem like me but i could not find the answer to his problems in this thread.

in listmode the markplugin works just fine but when i switch to thumb mode (std sheets) i just cant see the mark - its hidden under the sheet. I read in the changelog that the issue had been fixed but somehow i cant seem to get it work. im running 0.4.7.3 on a 1.21 base of course.

regards
sifusanders
Donor
 
Posts: 14
Joined: Thu Mar 17, 2011 4:14 pm

Re: Plugin: MediaMark [internal] (WDLXTV 0.4.5.1+)   

Postby RavRob » Thu Jun 02, 2011 8:20 am

The only way mine got fixed is after loading 1.02.21 WDLXTV 0.4.7.3 with built in Mediamark, MediaNavigation and PsychoTHC Mod.

Once loading, MediaMark worked like a charm as did everything else.
Windows 10
WDTV Live
1.02.21 WDLXTV 0.5.1.4 (Beta)
Linksys - WUSB600N USB Adapter
DLink - Dir-655 Router
Atheros - AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
Kodi - The Future of Television
User avatar
RavRob
Supporter
 
Posts: 1396
Joined: Fri Apr 16, 2010 9:57 am
Location: New-Brunswick, Canada

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest