Mise à jour script allocine | Page 2

Discussion in 'Mes Films' started by -ltb-, December 4, 2011.

  1. Smeulf
    • Team MediaPortal

    Smeulf Test Group

    Joined:
    October 27, 2010
    Messages:
    672
    Likes Received:
    227
    Location:
    France
    Ratings:
    +228 / 0
    Home Country:
    France France
    Show System Specs
    Ah oui au fait, pour ceux que ca intéresse, je valide mes regex avec cet outil : Rad Software Regular Expression Designer



    C'est gratuit, et ca fonctionne du tonnère ;)
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,256
    Likes Received:
    6,211
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,214 / 9
    Home Country:
    France France
    Show System Specs
    merci :)
     
  4. Guzzi
    • Premium Supporter

    Guzzi Retired Team Member

    Joined:
    August 20, 2007
    Messages:
    2,161
    Likes Received:
    704
    Ratings:
    +922 / 0
    AW: Re: Mise à jour script allocine

    Sorry for posting in english, my french is just too bad ;-)
    re actors regex:
    you can do all in one group expression:
    catch main actors:
    Code (Text):
    1. title='(?<person>.*?)'.*?<p>.*?:.(?<role>.*?)</p
    catch other actors:
    Code (Text):
    1. <tr.*?>.*?<td>(?<role>.*?)<.*?title='(?<person>.*?)'
    and put both together via "or" ("|"):
    Code (Text):
    1. title='(?<person>.*?)'.*?<p>.*?:.(?<role>.*?)</p|<tr.*?>.*?<td>(?<role>.*?)<.*?title='(?<person>.*?)'
    Have also fixed genres (to get all), added producer with role and changed the actors with the above.
    If there is any questions, feel free to ask in english forum - I just found this by accident ;-)
    ciao, Guzzi
     

    Attached Files:

    • AlloCine.xml
      File size:
      20.6 KB
      Uploaded:
      December 7, 2011
      Views:
      214
    • Like Like x 1
  5. Smeulf
    • Team MediaPortal

    Smeulf Test Group

    Joined:
    October 27, 2010
    Messages:
    672
    Likes Received:
    227
    Location:
    France
    Ratings:
    +228 / 0
    Home Country:
    France France
    Show System Specs
    Re: AW: Re: Mise à jour script allocine

    Hi Guzzi,

    Don't worry too much about french or english.

    I must admit this is a very elegant way, and obviously faster than mine. I have so much to learn with regex...

    I think I'll use this to update again the other scripts related to AlloCine.fr if you don't mind (but I'm sure you don't ;) )

    Nice accident btw :)

    Thank you very much.


    And now in french (not word for word) :

    Je dois admettre que c'est une manière de faire très élégante, et évidemment plus rapide que la mienne. J'ai tant à apprendre avec les expressions régulières...

    Je vais m'en inspirer pour mettre à jour les autres scripts relatifs à Allocine.fr. Hereux accident...

    Merci bcp.

    Smeulf.
     
  6. Guzzi
    • Premium Supporter

    Guzzi Retired Team Member

    Joined:
    August 20, 2007
    Messages:
    2,161
    Likes Received:
    704
    Ratings:
    +922 / 0
    AW: Mise à jour script allocine

    Hi Smeulf,
    "de rien" ;-)
    don't hesitate to ask, if there is something where I can help - I also started RegEx just to create those scripts - and also use RegexDesigner to verify btw ...
    Guzzi
     
  7. Philosopheur
    • Premium Supporter

    Philosopheur MP Donator

    Joined:
    July 27, 2011
    Messages:
    37
    Likes Received:
    7
    Ratings:
    +7 / 0
    Home Country:
    France France
    Show System Specs
    Bonjour
    Nous sommes dans la mouise Smeulf pourrais tu nous proposer un script allociné pour MP1. 3
    Merci
     
    Last edited: December 11, 2012
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!