MyTVSeries - Plugin that organizes TV Video Files (1 Viewer)

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


  • Total voters
    651

Havrest

Portal Member
June 26, 2005
8
0
Anglet
Home Country
France France
Sory for my bad english, I do what I can :wink:


Parse files with ' each scanning (even if already added) and parse 'x in 'X. (see log)

When I click on "start" button, only filenames of unadded files are parsed, isn't it ? But I have some filename with the Character ' . And even if they are already added to database, filename is parsed and is searched on tv.com
In "logs" "Mommy's Bosses" is writen "Mommy'S Bosses". It may be the problem ?
Exemple :
A file has already been assigned to this episode. Skipping file as per options.
Episode listing has already been stored in database. Skipping download.
Parsed Information: The 4400 - 2x13 - Mommy'S Bosses
Regular Expression: '(?<series>.*?) - saison (?<season>[0-9]{2}) - episode (?<episode>[0-9]{2}) - (?<title>[^$]*)
Processing File: b:\series\the 4400\saison 02\episode 13 - mommy's bosses\the 4400 - saison 02 - episode 13 - mommy's bosses.avi


Add Regular Expression excluder. (when you have several version of an episode)

Make an ignore list with regular expression.
Ex : Ignore all files starting with "preview" -> "preview[^$]*"

WeeToddDid said:
Havrest said:
Make possible to associate one file to several episodes.
You already can. Double click on an episode that you want to add a file to. Then Double click on the filename field.

Ok thanks, but is it possible to add a button to get data from tv.com for these episodes ?

Just a bug in 0.31a :
At the end of scan, "cancel" button don't switch to "start"

Thank you very much
 

patrick

Portal Pro
April 20, 2005
608
45
Southeast
Home Country
United States of America United States of America
WeeToddDid said:
I am looking into switching the regular expression parser to search the entire path+filename. However this is not as easy as it looks. I can't figure out how to write a regular expression to say "match to the last occurance of '\'". If anyone knows how to do this, let me know.

If I understand what you are asking correctly, try the regex option RightToLeft. Using this strings are searched from right to left instead
of left to right.

HTH,
patrick
 

carreno

Moderateur
  • Premium Supporter
  • July 31, 2005
    251
    25
    37
    France
    Home Country
    France France
    I have a bug:

    29/03/2006 20:20:56 - **** Plugin started in configuration mode ***
    29/03/2006 20:20:56 - Sucessfully opened database 'C:\Program Files\Team MediaPortal\MediaPortal\Database\TVSeriesDatabase3.db3'.
    29/03/2006 20:21:13 - Searching for all supported videos files within E:\Mes vidéos\Séries and it's subfolders.
    29/03/2006 20:21:13 - Found 25 supported video files.
    29/03/2006 20:21:13 - Scanning folder for supported video files...
    29/03/2006 20:21:13 - ---
    29/03/2006 20:21:13 - Processing File: e:\mes vidéos\séries\24\24 - [1x01] - de minuit à 1 heure du matin.avi
    29/03/2006 20:21:13 - Regular Expression: '(?<series>[^\[]*)(( |)\[)(?<season>[0-9]{1,2})x(?<episode>[0-9]{1,2})\]( |)(?<title>[^$]*)
    29/03/2006 20:21:13 - Parsed Information: 24 - - 1x1 - - De Minuit À 1 Heure Du Matin
    29/03/2006 20:21:13 - Seaching TV.com for matches on parsed series name.
    29/03/2006 20:21:13 - Downloading webpage: http://www.tv.com/search.php?type=11&stype=program&qs=24 -
    29/03/2006 20:21:15 - Found 5 matches to series name in search results.
    29/03/2006 20:21:18 - Selected '24' from the search results.
    29/03/2006 20:21:18 - Downloading series information for 24
    29/03/2006 20:21:18 - Downloading webpage: http://www.tv.com/24/show/3866/summary.html&full_summary=1
    29/03/2006 20:21:21 - Successfully downloaded series information into database (Series ID: 1).
    29/03/2006 20:21:21 - Downloading episode listing for 24
    29/03/2006 20:21:21 - Downloading webpage: http://www.tv.com/24/show/3866/episode_listings.html&season=0
    29/03/2006 20:21:25 - An Error Occured (SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:9 values for 10 columns query:insert into episode (episode_id, series_id, title, aired, season_number, episode_number, filename, description, image_url, summary_url) values(NULL, '1', '12:00 A.M.-1:00 A.M.', '11/6/2001', '1', '1', 'unknown', 'unknown', 'http://www.tv.com/24/1200-a.m.-100-a.m./episode/85396/summary.html')).
    29/03/2006 20:21:25 - Added 12:00 A.M.-1:00 A.M.(Episode ID: -1) to database.
    29/03/2006 20:21:25 - An Error Occured (SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:9 values for 10 columns query:insert into episode (episode_id, series_id, title, aired, season_number, episode_number, filename, description, image_url, summary_url) values(NULL, '1', '1:00 A.M.-2:00 A.M.', '11/13/2001', '1', '2', 'unknown', 'unknown', 'http://www.tv.com/24/100-a.m.-200-a.m./episode/85397/summary.html')).

    ...

    29/03/2006 20:21:30 - Added Day 5: 6:00 AM - 7:00 AM(Episode ID: -1) to database.
    29/03/2006 20:21:30 - Successfully downloaded episode listing into database.

    :wink:
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    patrick said:
    WeeToddDid said:
    I am looking into switching the regular expression parser to search the entire path+filename. However this is not as easy as it looks. I can't figure out how to write a regular expression to say "match to the last occurance of '\'". If anyone knows how to do this, let me know.

    If I understand what you are asking correctly, try the regex option RightToLeft. Using this strings are searched from right to left instead
    of left to right.

    HTH,
    patrick

    thats it... any ideas?
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    carreno said:
    I have a bug:

    29/03/2006 20:20:56 - **** Plugin started in configuration mode ***
    29/03/2006 20:20:56 - Sucessfully opened database 'C:\Program Files\Team MediaPortal\MediaPortal\Database\TVSeriesDatabase3.db3'.
    29/03/2006 20:21:13 - Searching for all supported videos files within E:\Mes vidéos\Séries and it's subfolders.
    29/03/2006 20:21:13 - Found 25 supported video files.
    29/03/2006 20:21:13 - Scanning folder for supported video files...
    29/03/2006 20:21:13 - ---
    29/03/2006 20:21:13 - Processing File: e:\mes vidéos\séries\24\24 - [1x01] - de minuit à 1 heure du matin.avi
    29/03/2006 20:21:13 - Regular Expression: '(?<series>[^\[]*)(( |)\[)(?<season>[0-9]{1,2})x(?<episode>[0-9]{1,2})\]( |)(?<title>[^$]*)
    29/03/2006 20:21:13 - Parsed Information: 24 - - 1x1 - - De Minuit À 1 Heure Du Matin
    29/03/2006 20:21:13 - Seaching TV.com for matches on parsed series name.
    29/03/2006 20:21:13 - Downloading webpage: http://www.tv.com/search.php?type=11&stype=program&qs=24 -
    29/03/2006 20:21:15 - Found 5 matches to series name in search results.
    29/03/2006 20:21:18 - Selected '24' from the search results.
    29/03/2006 20:21:18 - Downloading series information for 24
    29/03/2006 20:21:18 - Downloading webpage: http://www.tv.com/24/show/3866/summary.html&full_summary=1
    29/03/2006 20:21:21 - Successfully downloaded series information into database (Series ID: 1).
    29/03/2006 20:21:21 - Downloading episode listing for 24
    29/03/2006 20:21:21 - Downloading webpage: http://www.tv.com/24/show/3866/episode_listings.html&season=0
    29/03/2006 20:21:25 - An Error Occured (SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:9 values for 10 columns query:insert into episode (episode_id, series_id, title, aired, season_number, episode_number, filename, description, image_url, summary_url) values(NULL, '1', '12:00 A.M.-1:00 A.M.', '11/6/2001', '1', '1', 'unknown', 'unknown', 'http://www.tv.com/24/1200-a.m.-100-a.m./episode/85396/summary.html')).
    29/03/2006 20:21:25 - Added 12:00 A.M.-1:00 A.M.(Episode ID: -1) to database.
    29/03/2006 20:21:25 - An Error Occured (SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:9 values for 10 columns query:insert into episode (episode_id, series_id, title, aired, season_number, episode_number, filename, description, image_url, summary_url) values(NULL, '1', '1:00 A.M.-2:00 A.M.', '11/13/2001', '1', '2', 'unknown', 'unknown', 'http://www.tv.com/24/100-a.m.-200-a.m./episode/85397/summary.html')).

    ...

    29/03/2006 20:21:30 - Added Day 5: 6:00 AM - 7:00 AM(Episode ID: -1) to database.
    29/03/2006 20:21:30 - Successfully downloaded episode listing into database.

    :wink:

    My Fault... Screwed something up.. Will fix tonight
     

    zombiepig

    Portal Pro
    March 21, 2005
    408
    0
    Melb, Aus
    Home Country
    WeeToddDid said:
    * after you play an episode that it returns to the list for the season but the episode just played is selected
    ...
    * viewed or non-viewed episodes are visible in GUI

    i think it might be useful if these two options were kinda merged - so when you select a series, or when it returns to the series list after watching an ep, it automatically jumps down to the next episode which hasn't been watched. what do you think?
     

    patrick

    Portal Pro
    April 20, 2005
    608
    45
    Southeast
    Home Country
    United States of America United States of America
    WeeToddDid said:
    thats it... any ideas?

    Sorry, should have been more specific.

    Something like:
    Match matchResults = Regex.Match(episodeDetails, pattern, RegexOptions.RightToLeft);

    HTH,
    patrick
     

    garyday

    Portal Member
    March 1, 2006
    48
    0
    Dubai
    Home Country
    United Kingdom United Kingdom
    WeeTodd,

    there appears to be a bug in 0.31, when you first start all you
    see is the first TV show, if i go into this show and then come back
    I see all the shows..

    wierd.. any ideas?

    Gary
     

    falkyre

    Portal Pro
    March 20, 2006
    133
    0
    55
    Winnipeg, Canada
    Home Country
    Canada Canada
    WeeToddDid,

    Again, Awesome work on the plugin! I even monitored this while I was away on vacation :shock: I must be hooked.

    Could you explain what this means in the logfile?

    Sucessfully processed 39 video files.
    ---
    Scanning folder for supported video files...

    Nothing ever appears after that last line.

    Thanks!

    Falkyre
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    falkyre said:
    WeeToddDid,

    Again, Awesome work on the plugin! I even monitored this while I was away on vacation :shock: I must be hooked.

    Could you explain what this means in the logfile?

    Sucessfully processed 39 video files.
    ---
    Scanning folder for supported video files...

    Nothing ever appears after that last line.

    Thanks!

    Falkyre

    You started a scan, and the scanner found 39 files. None of the files were imported, since they were already in your library.
     

    Users who are viewing this thread

    Top Bottom