Fanart Handler Plugin v4.0.X.000 (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    create an text file with différent language for the same png file
    Or ...
    XML:
    <genres>
      <genre name="horreur">horror</genre>
      <genre name="épouvante">horror</genre>
      <genre name="orrore">horror</genre>
      <genre name="ужасы">horror</genre>
      <genre name="comédie">comedy</genre>
      <genre name="komodie">comedy</genre>
      <genre name="комедия">comedy</genre>
    </genres>
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    That could/should go into the language files
    I do not think. I have a genre in Russian, English and French can be.
    Better one global file. I do not think he will be very large.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Something similar could be done for the studio, the pictures would have been smaller.
    Like:
    XML:
    <studios>
      <studio name="Bedford Falls Company, The">Bedford Falls</studio>
      <studio name="The Bedford Falls Company">Bedford Falls</studio>
      <studio name="Bedford Falls Company">Bedford Falls</studio>
      ...
    </studios>
    But there are more than 1,500 pictures. Titanic work. :(
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    But there are more than 1,500 pictures.:(
    regex ?

    the xml file was my first idea, but don't know if was more easy than text file.

    XML:
    <icon name="horror">
      <genre name="horror"/> // EN
      <genre name="horreur"/> // FR
      <genre name="épouvante"/> // FR
      <genre name="orrore"/> // IT
      <genre name="ужасы"/> // RU
    </icon>
    <icon name="comedy">
      <genre name="comedy"/>
      <genre name="comédie"/>
      <genre name="komodie"/>
      <genre name="комедия"/>
    </icon>
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Why????? Why extra file (xml) when picture name is more then sufficient
    Because the studios are so many repetitions, the same image with different names. With umlauts, no umlauts, with prefixes in front, without prefix, etc. The processing speed would be higher. A space occupied less. And problems with the file names would be even less.
    You need 1 file for every language or a big one with all languages - that´s why I suggested to put it directly in every language file
    If there is a lot of files, I'll have to handle them all. And since one file and no problem :)
    the xml file was my first idea, but don't know if was more easy than text file.
    A flat structure is simpler and more versatile.

    New Beta Pre Release:
    Genre rework :)
    FanartHandler.dll - "C:\Program Files\Team MediaPortal\MediaPortal\plugins\process\"
    FanartHandler.Genres.xml - "C:\ProgramData\Team MediaPortal\MediaPortal\"
    Genres - "C:\ProgramData\Team MediaPortal\MediaPortal\skin\Titan\Media\Logos\"

    00-29-35.png 00-29-47.png 00-30-06.png
     

    Attachments

    • FanartHandler.BetaPreRelease.I.dll.zip
      544.8 KB

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,597
    10,590
    Königstein (Taunus)
    Home Country
    Germany Germany
    Because the studios are so many repetitions, the same image with different names. With umlauts, no umlauts, with prefixes in front, without prefix, etc.
    Those are the original names of the studios - in DWHD I have more than 2500, the processing is damn fast (thx to your work), and I don´t see any reason to change that.
    With genres it´s totally different, because genres need a translation, therefore the genre file is necessary ;)
     

    Users who are viewing this thread

    Top Bottom