[Bug] Minor glitches on scrapping series. (1 Viewer)

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Tested this with Build #4... "." and "?" did work now. But instead of "?" now fails "&" with this build... Al series with & in name like "Rizzoli & Isles" did not show any fanart...
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Hi,

    Just as a thought : would encode the values into BASE64 strings solve the problem ?

    You could use something like :

    /FanArtService?mediatype=Series&fanarttype=Banner&name=U2FtYW50aGUgd2hvLQ2&width=500&height=100

    instead of /FanArtService?mediatype=Series&fanarttype=Banner&name=Samantha Who%3F&width=500&height=100

    U2FtYW50aGUgd2hvLQ2 is returned by :

    public string EncodeTo64(string toEncode)
    {
    byte[] encbuff = Encoding.UTF8.GetBytes(toEncode);
    return System.Web.HttpServerUtility.UrlTokenEncode(encbuff);
    }

    Be carefull, it's not 100% a BASE64 string, but as it's a build in function, I think it's not a problem.

    Cheers.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom