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

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


  • Total voters
    651

butlerat

MP Donator
  • Premium Supporter
  • March 8, 2006
    27
    0
    39
    Home Country
    England England
    Any chance that after you play an episode that it returns to the list for the season but the episode just played is selected. Its annoying after an episode has played that the 1st episode of the series is highlighted.

    Should be any easy addition I hope!

    Thanks
     

    Todd

    Portal Member
    March 14, 2006
    6
    0
    Fairfield, CT USA
    Re: File Naming

    WeeToddDid said:
    I found the error. It seems that the database technology used in MP doesn't like 2 single quotes. I have fix this issue in version 0.29a and up.

    Oh yeah.. Here is your regular expression you need for you TIVO files:

    (?<series>[^$]*) - \'\'(?<title>[^$]*)\'\'

    You'll have to add it yourself to your database, or you can delete your database, and it will automatically be added when it gets re-created.

    Just wanted let you know that I with a little help from Renamer and some creative regex's, I was was able to get my files named the way I want and get them to import into the database. Thanks for your help and a great plug-in!
     

    Havrest

    Portal Member
    June 26, 2005
    8
    0
    Anglet
    Home Country
    France France
    Hi,

    It's a great plugin.

    Some bugs/suggestions :

    - Bugs :
    • In "Import Videos" : If you click on "test" button with no folders added, you get an exception.
    • Parse files with ' each scanning (even if already added) and parse 'x in 'X. (see log)
    • When your are in the series list (not in the configuration panel, it's on mediaportal) if you are on a serie with no image it's the previous serie's image witch is displayed.

    - Suggestion :
    • Transform"start" button into "cancel" during scanning (handy when you select "C:\" instead of "C:\TV\" ^^ )
    • Add Regular Expression excluder. (when you have several version of an episode)
    • Make possible to associate one file to several episodes.

    Log :
    Code:
    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
    ---
    A file has already been assigned to this episode.  Skipping file as per options.
    Episode listing has already been stored in database. Skipping download.
    Changing series name to previous search selection of 'Stargate SG-1'.
    Parsed Information: Stargate Sg-1 - 9x18 - Arthur'S Mantle
    Regular Expression: '(?<series>.*?) - saison (?<season>[0-9]{2}) - episode (?<episode>[0-9]{2}) - (?<title>[^$]*)
    Processing File: b:\series\stargate sg-1\saison 09\episode 18 - arthur's mantle\stargate sg-1 - saison 09 - episode 18 - arthur's mantle.avi
    ---
    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: Stargate Atlantis - 2x17 - Coup D'Etat
    Regular Expression: '(?<series>.*?) - saison (?<season>[0-9]{2}) - episode (?<episode>[0-9]{2}) - (?<title>[^$]*)
    Processing File: b:\series\stargate atlantis\saison 02\episode 17 - coup d'etat\stargate atlantis - saison 02 - episode 17 - coup d'etat.avi

    Thanks.
     

    idioteque

    Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    Hi love the plugin and its excelent:

    I also have a few sugestions

    * use path or folders for episode names
    * ability to refesh single seasons, say only the latest
    * ability to add files to ignore list
    * viewed or non-viewed episodes are visible in GUI
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    Re: Syntax for addseries function

    eX3me said:
    Can anyone tell me how the syntax for adding the files work?

    I have "The O.C." located in a folder named the same. All files are named "the.o.c.000.hdtv-lol.avi where the firs zero represents the season and the second and third represents the episode number. When scanning, it asks which series this is but does not suggest the correct series.

    Here is the Regular Expression:

    (?<series>[^$]*) (?<season>[0-9])(?<episode>[0-9]{1,2})*
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    Havrest said:
    [*]In "Import Videos" : If you click on "test" button with no folders added, you get an exception.

    Fixed in next version

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

    Don't know what you mean...

    Havrest said:
    When your are in the series list (not in the configuration panel, it's on mediaportal) if you are on a serie with no image it's the previous serie's image witch is displayed.


    Added in next version

    Havrest said:
    Transform"start" button into "cancel" during scanning (handy when you select "C:\" instead of "C:\TV\" ^^ )

    Added in next version

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

    I don't understand..

    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.
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    Re: Still getting a strange error message

    senhwei said:
    Hi everyone,

    I'm still getting this strange error message with the latest version of this awesome plugin :

    mytvseries4.jpg

    Can you play this file in "My Videos"?
     

    WeeToddDid

    Retired Team Member
  • Premium Supporter
  • December 2, 2005
    127
    0
    Ottawa, Canada
    I have posted the source codes and binary files for version 0.31a here.

    - I have fixed the bugs mentioned in the previous posts.
    - When you start importing the start button will switch to cancel.
    - Images will be inherited from previous level.
    - Images for episodes can now be in the same folder as the video file. The image file must be the same filename as the video file (with the exception of the extension).

    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.

    Here is on my to do list:
    * toggle button which shows/hides episodes that´s in certain season but is not on harddrive
    * Parse Path name like <series>\<season x>\SxxExx - <title
    * after you play an episode that it returns to the list for the season but the episode just played is selected
    * ability to refesh single seasons, say only the latest
    * ability to add files to ignore list
    * viewed or non-viewed episodes are visible in GUI
     

    LordMessi

    Retired Team Member
  • Premium Supporter
  • July 4, 2005
    449
    0
    45
    Ørsø, Dronninglund, Denmark
    Home Country
    Denmark Denmark
    WeeToddDid said:
    I have posted the source codes and binary files for version 0.31a here.

    - I have fixed the bugs mentioned in the previous posts.
    - When you start importing the start button will switch to cancel.
    - Images will be inherited from previous level.
    - Images for episodes can now be in the same folder as the video file. The image file must be the same filename as the video file (with the exception of the extension).

    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.

    Here is on my to do list:
    * toggle button which shows/hides episodes that´s in certain season but is not on harddrive
    * Parse Path name like <series>\<season x>\SxxExx - <title
    * after you play an episode that it returns to the list for the season but the episode just played is selected
    * ability to refesh single seasons, say only the latest
    * ability to add files to ignore list
    * viewed or non-viewed episodes are visible in GUI

    Also re-use MyMovies ability to start an episode, where you left of. It's a field in the Movies database that stores the time watched, when pressing the stop button. The next time you'll select the episode, it asks if it should start at this point or restart.

    Also don't forget to bring some information into the OSD.
     

    moltas

    Portal Pro
    April 6, 2005
    133
    0
    Sweden
    I've just found this amazing Plugin which sure looks promising. I have found the right way to name my files (trial and error). When I test the filenames the all get the right season, episode and name. But when I start the whole thing they all get database id -1 and after a while MP configuration crashes...gulp...why?

    My Error log:
    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table path already exists query:CREATE TABLE path (path_id integer primary key, path text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table series already exists query:CREATE TABLE series (series_id integer primary key, name text, premiered text, airs text, status text, duration text, network text, description text, summary_url text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table episode already exists query:CREATE TABLE episode (episode_id integer primary key, series_id integer, title text, aired text, season_number int, episode_number integer, filename text, description text, summary_url text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table genre already exists query:CREATE TABLE genre (genre_id integer primary key, name text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table genre_series_link already exists query:CREATE TABLE genre_series_link (link_id integer primary key, genre_id int, series_id int);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table actor already exists query:CREATE TABLE actor (actor_id integer primary key, name text, character text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table actor_episode_link already exists query:CREATE TABLE actor_episode_link (link_id integer primary key, actor_id int, episode_id integer);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table replacementstring already exists query:CREATE TABLE replacementstring (replacementstring_id integer primary key, search text, replace text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table pattern already exists query:CREATE TABLE pattern (pattern_id integer primary key, pattern text);

    2006-03-29 14:30:18 SQL:TVSeriesDatabase3.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table options already exists query:CREATE TABLE options (option_id integer primary key, property text, value text);

    2006-03-29 14:30:18 Window:MediaPortal.GUI.GUIExplorer.GUIExplorer and window MyMusicVideos.MyLaunch have the same id's!!!


    My Mediaportal log:
    2006-03-29 14:10:50 - 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', 'Series 4, Episode 2', '2/19/1995', '4', '2', 'unknown', 'unknown', 'http://www.tv.com/a-bit-of-fry-and-laurie/series-4-episode-2/episode/259692/summary.html')).
    2006-03-29 14:10:50 - Added Series 4, Episode 2(Episode ID: -1) to database.
    2006-03-29 14:10:50 - 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', 'Series 4, Episode 3', '2/26/1995', '4', '3', 'unknown', 'unknown', 'http://www.tv.com/a-bit-of-fry-and-laurie/series-4-episode-3/episode/259693/summary.html')).
    2006-03-29 14:10:50 - Added Series 4, Episode 3(Episode ID: -1) to database.
    2006-03-29 14:10:50 - 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', 'Series 4, Episode 4', '3/12/1995', '4', '4', 'unknown', 'unknown', 'http://www.tv.com/a-bit-of-fry-and-laurie/series-4-episode-4/episode/259694/summary.html')).
    2006-03-29 14:10:50 - Added Series 4, Episode 4(Episode ID: -1) to database.
    2006-03-29 14:10:50 - 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', 'Series 4, Episode 5', '3/19/1995', '4', '5', 'unknown', 'unknown', 'http://www.tv.com/a-bit-of-fry-and-laurie/series-4-episode-5/episode/259695/summary.html')).
    2006-03-29 14:10:50 - Added Series 4, Episode 5(Episode ID: -1) to database.
    2006-03-29 14:10:50 - 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', 'Series 4, Episode 6', '3/26/1995', '4', '6', 'unknown', 'unknown', 'http://www.tv.com/a-bit-of-fry-and-laurie/series-4-episode-6/episode/259696/summary.html')).
    2006-03-29 14:10:51 - Added Series 4, Episode 6(Episode ID: -1) to database.
    2006-03-29 14:10:51 - 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', 'Series 4, Episode 7', '4/2/1995', '4', '7', 'unknown', 'unknown', 'http://www.tv.com/a-bit-of-fry-and-laurie/series-4-episode-7/episode/259697/summary.html')).

    The series I have are somewhat old :) E.g "A bit of Fry and Laurie" - I hope that isn't a problem?

    Thanks for your time!

    /Moltas
     

    Users who are viewing this thread

    Top Bottom