App to Copy Artwork and Details to Movie Folder v0.5.6 (5 Viewers)

jmcentire

Portal Pro
November 7, 2008
85
136
Home Country
United States of America United States of America
New Version 0.5.0!!!

New Version 0.5.0!!! - See first post.

I found AutoHotkey_L which allows my app to natively support Unicode, so now I can read and write UTF-8 files. This should fix two problems: I no longer have to convert the output from the database from UTF-8 to ansi, which may be causing some problems with special characters, and the nfo files are now created in UTF-8 format. I also added the xml document header for UTF-8(<?xml version="1.0" encoding="UTF-8"?>) to the nfo file creation.

This is a major change, so please test and get back to me.
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Re: New Version 0.5.0!!!

    New Version 0.5.0!!! - See first post.

    I found AutoHotkey_L which allows my app to natively support Unicode, so now I can read and write UTF-8 files. This should fix two problems: I no longer have to convert the output from the database from UTF-8 to ansi, which may be causing some problems with special characters, and the nfo files are now created in UTF-8 format. I also added the xml document header for UTF-8(<?xml version="1.0" encoding="UTF-8"?>) to the nfo file creation.

    This is a major change, so please test and get back to me.

    Good work, that means the XBMC v1.0.2 (and older) scrapers will work as-is and I can stop working on a multi-encode scraper version.

    With UTF-8 having support for almost 'any' character set and it being default for the XBMC NFO format, there is no reason to suspect other generators might use another encoding.
     

    CESSI

    Portal Pro
    February 19, 2009
    217
    1
    Home Country
    Belarus Belarus
    Re: New Version 0.5.0!!!

    Thank you very much, encoding everything works!
    But all the info file is not generated because of the new paragraphs in the description of the movie ...
    If there is a tab in the description, then the info file ends,
    Thank you very much that responded.
    Sorry for very bad English.
    He wrote through Google translator
     

    imtheyoyo

    Portal Member
    April 24, 2005
    16
    0
    Re : App to Copy Artwork and Details to Movie Folder

    For me, this new version doesn't work. :oops:
    Look :
    439777Test_1.jpg


    The NFO should be :
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <movie>
    <title>King Kong</title>
    <originaltitle>King Kong</originaltitle>
    <sorttitle></sorttitle>
    <set></set>
    <trailer></trailer>
    <rating>0.0</rating>
    <year>2005</year>
    <runtime>3h 00min</runtime>
    <top250>0</top250>
    <votes>0</votes>
    <outline></outline>
    <plot>New York, 1933. Ann Darrow est une artiste de music-hall dont la carrière a été brisée net par la Dépression. Se retrouvant sans emploi ni ressources, la jeune femme rencontre l&apos;audacieux explorateur-réalisateur Carl Denham et se laisse entraîner par lui dans la plus périlleuse des aventures...
    Ce dernier a dérobé à ses producteurs le négatif de son film inachevé. Il n&apos;a que quelques heures pour trouver une nouvelle star et l&apos;embarquer pour Singapour avec son scénariste, Jack Driscoll, et une équipe réduite. Objectif avoué : achever sous ces cieux lointains son génial film d&apos;action.
    Mais Denham nourrit en secret une autre ambition, bien plus folle : être le premier homme à explorer la mystérieuse Skull Island et à en ramener des images. Sur cette île de légende, Denham sait que &apos;quelque chose&apos; l&apos;attend, qui changera à jamais le cours de sa vie...</plot>
    <tagline>Les trois heures passent d’autant plus agréablement qu’on est suspendu à l’intrigue et au jeu des acteurs. La blonde Naomi Watts, Jack Black, Adrien Brody et tous les seconds rôles sont époustouflants.</tagline>
    <mpaa>Box Office France : 3 582 899 entrées / Budget : 207.000.000$ / N° de visa : 114089 / Couleur  / Format de production : 35 mm</mpaa>
    <id>46718</id>
    <imdb>360717</imdb>
    <thmdb></thmdb>
    <allocine>46718</allocine>
    <genre>Fantastique / Aventure</genre>
    <credits>Peter Jackson / Frances Walsh / Philippa Boyens</credits>
    <director>Peter Jackson</director>
    <studio>United International Pictures (UIP)/ 1080p/ dts</studio>
    <playcount>0</playcount>
    <lastplayed></lastplayed>
    <watched>false</watched>
    <actor>
    <name>Adrien Brody</name>
    <role>Jack Driscoll</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/AdrienBrody-33933.jpg</thumb>
    </actor>
    <actor>
    <name>Andy Serkis</name>
    <role>King Kong / Lumpy</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/AndySerkis-33816.jpg</thumb>
    </actor>
    <actor>
    <name>Colin Hanks</name>
    <role>Preston</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/ColinHanks-34853.jpg</thumb>
    </actor>
    <actor>
    <name>Evan Parke</name>
    <role>Hayes</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/EvanParke-36587.jpg</thumb>
    </actor>
    <actor>
    <name>Jack Black</name>
    <role>Carl Denham</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/JackBlack-31645.jpg</thumb>
    </actor>
    <actor>
    <name>Jamie Bell</name>
    <role>Jimmy</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/JamieBell-54851.jpg</thumb>
    </actor>
    <actor>
    <name>John Sumner</name>
    <role>Herb</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/JohnSumner-54916.jpg</thumb>
    </actor>
    <actor>
    <name>Kyle Chandler</name>
    <role>Bruce Baxter</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/KyleChandler-36148.jpg</thumb>
    </actor>
    <actor>
    <name>Naomi Watts</name>
    <role>Ann Darrow</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/NaomiWatts-34683.jpg</thumb>
    </actor>
    <actor>
    <name>Thomas Kretschmann</name>
    <role>le Capitaine Englehorn</role>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/ThomasKretschmann-30760.jpg</thumb>
    </actor>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Poster_KingKong-293438.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Poster_KingKong-293439.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Poster_KingKong-293440.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Poster_KingKong-293441.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Poster_KingKong-293290.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Poster_KingKong-293442.jpg</thumb>
    <fanart>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Fanart_KingKong-293434.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Fanart_KingKong-293433.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Fanart_KingKong-293435.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Fanart_KingKong-293437.jpg</thumb>
    <thumb>http://passion-xbmc.org/scraper/Gallery/main/Fanart_KingKong-293436.jpg</thumb>
    </fanart>
    </movie>
    Sorry for my english to, I'm french :p
     

    drealit

    Portal Pro
    March 15, 2008
    190
    17
    Re: App to Copy Artwork and Details to Movie Folder

    RoChess do you still have a version of your scraper that will import the pre-0.5 files without character problems? The reason I ask is because I just recently switched over to the new RC's for everything and the nfo import for Moving Pictures led to incorrect characters being imported into my current database (as knives referenced, bruno was not correctly loaded and many other foreign films). I'd like to reimport from the nfo's I have now and then rerun the App to Copy* script after everything has been initally imported correctly with 0.5+.
     

    jmcentire

    Portal Pro
    November 7, 2008
    85
    136
    Home Country
    United States of America United States of America
    Re: Re : App to Copy Artwork and Details to Movie Folder

    For me, this new version doesn't work. :oops:
    Look :
    ...
    </movie>[/code]Sorry for my english to, I'm french :p

    It seems you have the same problem as cessi, since the plot is split into paragraphs it is not creating the nfo correctly...I'll see if I can get it fixed today.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Re: App to Copy Artwork and Details to Movie Folder

    RoChess do you still have a version of your scraper that will import the pre-0.5 files without character problems? The reason I ask is because I just recently switched over to the new RC's for everything and the nfo import for Moving Pictures led to incorrect characters being imported into my current database (as knives referenced, bruno was not correctly loaded and many other foreign films). I'd like to reimport from the nfo's I have now and then rerun the App to Copy* script after everything has been initally imported correctly with 0.5+.

    Yes, use the attached scraper to force ISO-8859-1 encoding on your existing NFO files. Since this is a seperate scraper, be sure to adjust the priority level, so it gets used before the default XBMC scraper.
     

    Attachments

    • XBMC ISO-8859 v1.0.2.xml
      30.7 KB

    drealit

    Portal Pro
    March 15, 2008
    190
    17
    Re: App to Copy Artwork and Details to Movie Folder

    Thanks bud, I'll try it when I get home from work (gotta love these slooooow borrrrring days). Too bad I can't R/D from here otherwise I would be doing it right now.
     

    jmcentire

    Portal Pro
    November 7, 2008
    85
    136
    Home Country
    United States of America United States of America
    Re: Re : App to Copy Artwork and Details to Movie Folder

    For me, this new version doesn't work. :oops:
    Look :
    ...
    </movie>[/code]Sorry for my english to, I'm french :p

    It seems you have the same problem as cessi, since the plot is split into paragraphs it is not creating the nfo correctly...I'll see if I can get it fixed today.

    Got it....kind of a pain since the database export was csv and uses line feeds to separate each movie(which is why the nfo would stop when it got to a new paragraph in the plot, it thought it was a new movie).

    But anyway, it should be working now....Updated first post with version 0.5.1!

    Let me know if it works!
     

    Users who are viewing this thread

    Top Bottom