Nordic characters in for example Yle Areena subtitles. (1 Viewer)

te3hpurp

Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    Country flag
    Hi.

    I had Ä ä ö Ö showing like ä etc...

    I changed line 2452 in GuiOnlineVideos.cs, ie.

    Code:
     string subs = string.IsNullOrEmpty(playItem.Video.SubtitleText) ? Sites.SiteUtilBase.GetWebData(playItem.Video.SubtitleUrl) : playItem.Video.SubtitleText;
    to
    Code:
    string subs = string.IsNullOrEmpty(playItem.Video.SubtitleText) ? Sites.SiteUtilBase.GetWebData(playItem.Video.SubtitleUrl, null, null, null, true, false, null, null) : playItem.Video.SubtitleText;

    meaning forcing utf-8.

    Now characters are presented Okay.

    Br,
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,711
    Stuttgart
    Home Country
    Germany Germany
    Country flag
    Hm we can't use this as a generic fix, because it forces all downloaded subtitles to utf-8, which might be wrong. We have to options to set subs on a video, once as url and once as the actual text - using the later would give the chance to use a custom encoding.
    Calling @doskabouter :)
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,103
    2,337
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    Strange, I thought Yle areena was down, can you verify please?
    If it's working, I can transform the text to utf-8 in the util
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,103
    2,337
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    Great!

    I've fixed the subtitle issue. I can't test it here due to geo-restrictions. Can you check if it's working ok?
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    Country flag
    Yes. Sure,Thanks.

    I'm going to weekend trip, but, i'll test it when I get back in Monday

    Br,
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    Country flag
    Hi.

    I reverted my changes, and fetched all updates, and compiled
    new dll's, but Mp says that Onlinevideos is not compatible with this version of
    MediaPortal. Is assemblyinfo.cs that I should change for correct version number
    or, where?
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    Country flag
    You'll need revision 2835 of that file if you want it to work with MP 1.3
    Okay, I was trying to test doskabouter fix for yle subtitles. Are they in 2835 rev, or how to build compatible version....
     

    Users who are viewing this thread

    Similar threads

    • Sticky
    Historical reasons, so that if you update to a new version and it fails, you can go back to old one. As to why it keeps more than just the "previous" one, that I don't know. Probably made sense when it was designed (y)
    Historical reasons, so that if you update to a new version and it fails, you can go back to old one. As to why it keeps more than...
    The IMDb+ scraper-script and plugin combination for Moving-Pictures is the first scraper to support custom options, allowing you to...
    Replies
    177
    Views
    24K
    Sorry, life stuff got my attention elsewhere, but now my mind is back on this :cool: OK I post the suggestion in the Improvement Suggestions sub-forum later today (y) (when I get some free time after I've had time to make it look like I've done my fair share of home chores :whistle:) EDIT: Done, now I have posted it here Option for...
    Sorry, life stuff got my attention elsewhere, but now my mind is back on this :cool: OK I post the suggestion in the Improvement...
    JIRA MP1-4155 : Rework of DVBIP RTSP Filter https://issues.team-mediaportal.com/browse/MP1-4155 GIT branch...
    Replies
    649
    Views
    146K
    • Locked
    Thread moved to public forum. Please note that the status of this thread is "Not open for further replies", which actually means team-members and plugin devs can reply, but others can not, hence it is "read only".
    Thread moved to public forum. Please note that the status of this thread is "Not open for further replies", which actually means...
    Dear community, I started this thread some time ago in the internal team forums, but we think it is time to share it with you. It...
    Replies
    82
    Views
    12K
    Yep. The reinstall of PowerDVD did it. Actually, for some reason the PowerDVD DLL file I moved to the root of C: for SAF was gone. Everything video is working. Now I'm trying to get music to play. Thanks for all of the help!
    Yep. The reinstall of PowerDVD did it. Actually, for some reason the PowerDVD DLL file I moved to the root of C: for SAF was...
    TV-Server Version: MediaPortal Version: v1.0.0.22029 with latest SVN MediaPortal Skin: Default Windows Version: XP SP3 CPU...
    Replies
    11
    Views
    3K
    TV-Server Version: MediaPortal Version: MP 0.2.3 SVN 15269 MediaPortal Skin: Blue Two Windows Version: Win XP Pro CPU Type: HDD: Memory: Motherboard: Motherboard Chipset: Motherboard Bios: Video Card: Video Card Driver: Sound Card: Sound Card AC3: Sound Card Driver: 1. TV Card: 1. TV Card Type: 1. TV Card Driver: 2. TV...
    TV-Server Version: MediaPortal Version: MP 0.2.3 SVN 15269 MediaPortal Skin: Blue Two Windows Version: Win XP Pro CPU Type: HDD...
    TV-Server Version: MediaPortal Version: MP 0.2.3 SVN 15269 MediaPortal Skin: Blue Two Windows Version: Win XP Pro CPU Type: HDD...
    Replies
    0
    Views
    1K
    Top Bottom