Apostrophe problem: Is this why?

Discussion in 'SubCentral' started by Swede, April 25, 2016.

  1. Swede

    Swede Portal Pro

    September 6, 2006
    Likes Received:
    West Coust Archipelago
    +25 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    The problem could be that single quotes are used in the code. Single quotes and apostrophe is the same character. If double quotes were used instead, it would probably work. It could also be an uneven amount of quotes?

    Code (Text):
    1. 25-Apr-2016 08:40:26.309  Info [           Retriever]: Searching for subtitles...
    2. 25-Apr-2016 08:40:26.309 Debug [           Retriever]: ...using TV show query: 'DC's Legends of Tomorrow 1x12 TvdbId: 295760  
    Notice in the log above, only one single quote before DC, non at the end of the query. That's usually causing problems and the apostrophe in DC's may be is interpreted as the second single quote since that is the same ASCII number. Anyway, this query gives no results.
    Code (Text):
    1. 25-Apr-2016 08:40:26.309 Debug [           Retriever]: Searching site OpenSubtitles...
    2. 25-Apr-2016 08:40:26.780 Debug [           Retriever]: Searching site Subscene...
    3. 25-Apr-2016 08:40:46.634  Info [           Retriever]: Searching for subtitles...
    4. 25-Apr-2016 08:40:46.634 Debug [           Retriever]: ...using TV show query: 'Legends Of Tomorrow 1x12 TvdbId:  
    If the aphostrophe is removed from the search query, the search works.
    Code (Text):
    1. 25-Apr-2016 08:40:46.634 Debug [           Retriever]: Searching site OpenSubtitles...
    2. 25-Apr-2016 08:40:47.129 Debug [           Retriever]: Searching site Subscene...
    3. ...
    4. 25-Apr-2016 08:41:17.730  Info [           Retriever]: Downloading subtitles...
    5. 25-Apr-2016 08:41:17.730 Debug [           Retriever]: ...from provider OpenSubtitles, subtitle name is 'DCs.Legends.of.Tomorrow.S01E12.HDTV.x264-LOL.srt'
    6. 25-Apr-2016 08:41:18.193  Info [           Retriever]: 1 subtitle(s) downloaded to temporary folder.

    If you edit the "pretty name" in the TV-Series database so that it has no apostrophe. Then subtitles will be found. This does not work in TV-Series config, only in database. It will only last until next database update.

    Is there anyway the "pretty name" could stay without apostrophe?
    Last edited: April 27, 2016

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!