MyTVSeries - Plugin that organizes TV Video Files (3 Viewers)

Should I implement an automatic file organizer to move and rename files?


  • Total voters
    651

zeflash

Portal Pro
July 7, 2005
199
16
Home Country
France France
Ok. I'll post my first tests.
the filename with full path:
d:\media\tvshows\24\24.521.hdtv-lol.[vtv].avi

The regexp:
\\(?<series>[^\\]+)\\[^\\]*$

In regexbuddy, series should be 24 on that string (the last subfolder name).

In the plugin, Series is set to 24.521.hdtv-lol.[VTV] (which is the result I always get no matter what I tried).

Given that I've compiled mediaportal & the plugin, as I tried to remove the RightToLeft flag (which didn't change a thing) I'll try to debug & see what's going on in there. Or maybe someone will tell me that I missed something and it's normal that it's not working :)
 

Zipperzip

Retired Team Member
  • Premium Supporter
  • April 25, 2004
    76
    0
    The Netherlands
    Ok. I'll post my first tests.
    the filename with full path:
    d:\media\tvshows\24\24.521.hdtv-lol.[vtv].avi

    The regexp:
    \\(?<series>[^\\]+)\\[^\\]*$

    In regexbuddy, series should be 24 on that string (the last subfolder name).

    In the plugin, Series is set to 24.521.hdtv-lol.[VTV] (which is the result I always get no matter what I tried).

    Given that I've compiled mediaportal & the plugin, as I tried to remove the RightToLeft flag (which didn't change a thing) I'll try to debug & see what's going on in there. Or maybe someone will tell me that I missed something and it's normal that it's not working :)

    Well i was "fighting" with it last weekend myself ;) . This one should work:
    Code:
    .*\\(?<series>.*?)\\.*?(?<season>\d{1})(?<episode>\d{2})

    greets Marc
     

    zeflash

    Portal Pro
    July 7, 2005
    199
    16
    Home Country
    France France
    Hum.
    I just tweaked the regex I use in meedio, and applied it to the text list of all my tvshows structure (dir *.avi /F /S)
    This regex works in the various testing programs:

    Code:
    ^.*?\\(?<series>[^\\$]+)\\[^\\$]*?(?:s(?<season>[0-9]{1,2})e(?<episode>[0-9]{2})|(?<season>[0-9])x?(?<episode>[0-9]{2}))[ \-\.]*(?<title>.*?)\.(?:avi|mpg)$

    Yet it's not working in myTVSeries. And it should! I'll try to debug.
    Can someone tell me how to debug this?
    I'm trying to debug using configuration.exe, but if I run it from devenv I'm pretty much always getting a lock somewhere...
    And the test app that is also there in the sources of .40 is missing some files (in the resources, format.txt and 2 other I don't remember)
     

    zeflash

    Portal Pro
    July 7, 2005
    199
    16
    Home Country
    France France
    Ok, seems I'm talking to myself only here ;)

    I solved my problems, the code in the plugin was wrong - it *wasn't* using the full name (with path) for regex, it always used the file name without extension (at least in 0.40, the only one I have source code from).

    So, after I fixed this to use full pathname for regex, my regex started to work as expected.

    I also fixed the bug that always reverted the parse method back to simple (and that always reverted the delimiters back to &,).

    I'll try to get in touch with the owner of this plugin (that would be Salty.dh) to see if I can participate in the update process.
     

    zeflash

    Portal Pro
    July 7, 2005
    199
    16
    Home Country
    France France
    Ok, I made more "adjustments" to the plugin code to implement things I *had* to have available :)

    - added a watched flag that shows in the list of episodes to figure out which episodes are watched and wich aren't. It shows as an asterisk right before the title of the show in the list. As soon as an episode is played the watched flag disappears.
    - tweaked navigation controls so that go up one level actually goes up. I also made sure the selection was kept when going back to the page (meaning going back to the season list will put the selection on the season you were exploring)

    Now I have to figure out why some shows aren't showing at all even though they were properly parsed. I guess the easiest way would be to show the show even if it's not found when parsing tv.com, right?
     

    takingover

    Portal Pro
    April 10, 2006
    61
    4
    UK
    Home Country
    United Kingdom United Kingdom
    Great work zeflash, I was just thinking it would be great to have a way of knowing which episodes I've watched. As I've got over 1500 in my db it's difficult keeping track.

    Got another suggestion what about adding another field in the db that added the date the episode was added to the db. This way you could have a "sort by" button for latest episodes or unwatched shows. Not sure how easy this would be but thought I'd put my ideas forward just so everyone knows.

    Would be good if we could have a play with what you've done!

    keep up the great work, this is defiantly one of the best plug-ins and could make MP even better than it already is.

    Jay
     

    Cinetix

    Portal Member
    May 8, 2006
    49
    0
    Now I have to figure out why some shows aren't showing at all even though they were properly parsed. I guess the easiest way would be to show the show even if it's not found when parsing tv.com, right?

    I would prefer if you use episodeworld.com as it is easy to submit and edit the site.

    A thing I miss is the possibility to select language:

    http://episodeworld.com/show/Klovn/season=all/danish
    http://episodeworld.com/show/Klovn/season=all/english

    At this moment the plug-in only "sees" the /english pages.

    It would be great if one could select a preferred and a secondary language.


    I believe Salty.dh is out of the game due to an infection but it could be nice if the two of you teamed up!
     

    zeflash

    Portal Pro
    July 7, 2005
    199
    16
    Home Country
    France France
    I would prefer if you use episodeworld.com as it is easy to submit and edit the site.

    What I meant is I have a show that is properly referenced in episodeworld, yet it fails to parse (I can see an exception in the log).
    So that's what I want to figure out.

    I believe Salty.dh is out of the game due to an infection but it could be nice if the two of you teamed up!

    I'm still waiting for a sign from him. I understand he hurt himself and is not able to work on this anymore?
    I hope he will still give me approval at some point :)
     

    Cinetix

    Portal Member
    May 8, 2006
    49
    0
    I'm still waiting for a sign from him. I understand he hurt himself and is not able to work on this anymore?
    I hope he will still give me approval at some point :)

    He's just taking a break as he cannot code at this moment.
    He's not at all done with the plug-in.


    Regarding tv.com I think the solution is to completely stop using the site.

    And for series art:
    http://www.fluxxx.net/banners/
    The webmaster of fluxxx.net has previously stated that his site isn't just for the Meedio plug-in.
     

    zeflash

    Portal Pro
    July 7, 2005
    199
    16
    Home Country
    France France
    Funny thing, this banner site doesn't work properly in Firefox (at least 2.0 RC1).
    Looking at it in FF I was wondering how one would search something there :)

    I'll take a look at how things are working in the HTML parsing area (without any promises, I have a job, a kid and a pregnant wife so free time is counted).
     

    Users who are viewing this thread

    Top Bottom