App to Copy Artwork and Details to Movie Folder v0.5.6 | Page 6

Discussion in 'Moving Pictures' started by jmcentire, October 7, 2009.

  1. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    no worries, would love to test it. i use autohotkey a little, but i couldn't figure out how to read a directory. I'm not a programmer so thought it would probably take me several days to figure it out, while a programmer could do it in half an hour.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. jmcentire

    jmcentire Portal Pro

    Joined:
    November 7, 2008
    Messages:
    85
    Likes Received:
    68
    Ratings:
    +69 / 0
    Home Country:
    United States of America United States of America
    I don't have music setup on my machine, so I went off exactly what you told me, should work but let me know either way.
     

    Attached Files:

    • Like Like x 5
  4. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    Works perfectly on 95% of my music, thanks!!!!

    It failed on a few artists with The prefix.

    i have "The Smashing Pumpkins" subfolder and "The Smashing PumpkinsL.jpg", so that works fine.
    i have "The Mint Chicks" subfolder and have "Mint ChicksL.jpg" so that doesn't work.

    Mediaportal or audioscrobber plugins strips the 'The' prefix from some artists but not all.

    It also failed on a couple of compilation albums however that is because mediaportal grabs arist images not album artist images, and i can't see an uncomplicated way around this problem.

    Therefore i can suggest one improvement

    Code (Text):
    1.  
    2. 1. User select root music folder %rootfolder%
    3. 2. Applications scans the name of each of %rootfolder%'s level 1 subfolder and stores it as %subfoldername%
    4. 3. If exist C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs\Music\Artists\%subfoldername%L.jpg
    5.     then copy that file to %rootfolder%\%subfoldername%\folder.jpg
    6.  
    7. 4. if notexist C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs\Music\Artists\%subfoldername%L.jpg
    8.    AND first four letters of %subfoldername% = "The " Then
    9.        4a. %shortartistname% = %subfodlername% less first 4 characters
    10.        4b. If exist C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs\Music\Artists\[B]%shortartistname%L.jpg[/B]
    11.              then copy that file to %rootfolder%\%subfoldername%\folder.jpg
     
  5. jmcentire

    jmcentire Portal Pro

    Joined:
    November 7, 2008
    Messages:
    85
    Likes Received:
    68
    Ratings:
    +69 / 0
    Home Country:
    United States of America United States of America
    Added that, give the new version a try(attached to the above post):
    https://forum.team-mediaportal.com/...ils-movie-folder-71649/index6.html#post527298
     
  6. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    did a quick test, seems to work with mint chicks. thanks a lot.
     
  7. dongadomski

    dongadomski Portal Member

    Joined:
    November 29, 2009
    Messages:
    6
    Likes Received:
    0
    Ratings:
    +0 / 0
    question regarding special characters

    Hi all,

    thanks for the cool script. It works perfectly well for me with one little drawback.

    If I use special characters i.e. german ä,ö,ü the extraction from the database and the creation of the .nfo files will not work.

    If I change the directory names, the .nfo creation works although the characters are still included in the movie title.
    However, the cover art cannot be extracted from the "thumbs" directory with the following error message in the log-file.
    "Cover not found at C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize\{WALL-E.-.Der.Letzte.räumt.die.Erde.auf} [326824773].jpg for WALL-E - Der Letzte räumt die Erde auf - 20091129103952"

    Is it possible to include the use of this special characters in the script - with limited effort?

    Or am I just missing something? :confused:

    Thanks
    DonGadomski
     
  8. dongadomski

    dongadomski Portal Member

    Joined:
    November 29, 2009
    Messages:
    6
    Likes Received:
    0
    Ratings:
    +0 / 0
    Hi all,

    I made some additional tests. It seems that the csv export of sqlite is in utf8 format and special characters cannot be read by autohotkey. I paused the script and reformatted the csvs to ansi - it works.
    As the next step I want to include stringconverter in the script to format the file to ansi.
    Probably this is all to complicated as the variables can be changed inside autohotkey from unicode to ansi.
    However, I was not able to understand autohotkey quick enough to get the A_Loopfield converted in the right way. So I will give stringconverter a try. But my next chance will be on Thursday.

    A hint to an elegant way to change the file/variables to ansi inside autohotkey would be very appreciated.
    Can sqlite probably be switched to export ansi csvs?

    Thanks for even the smallest idea.
    CU
    Dongadomski
     
  9. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    maybe ask on autohotkey forum, it's a pretty active forum with quick answers and good advice
     
  10. jmcentire

    jmcentire Portal Pro

    Joined:
    November 7, 2008
    Messages:
    85
    Likes Received:
    68
    Ratings:
    +69 / 0
    Home Country:
    United States of America United States of America
    I had noticed that problem before, and it seems you have found what is causing it...I'll try and take a look at it in the next day or two to see if I can get it to work.
    Thanks

     
  11. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,746
    Likes Received:
    1,420
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,849 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!