Ignore:
Timestamp:
Mar 16, 2012, 4:02:47 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: 0.7.1 trunk update

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/findsubtitles/osparser.cpp

    r119 r124  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    5555
    5656                        sub.releasename = subtitle.firstChildElement("releasename").text();
    57                         sub.link = base_url + subtitle.firstChildElement("download").text();
     57                        QString path = subtitle.firstChildElement("download").text();
     58                        if (path.contains("http://")) {
     59                                sub.link = subtitle.firstChildElement("download").text();
     60                        } else {
     61                                sub.link = base_url + subtitle.firstChildElement("download").text();
     62                        }
    5863                        sub.detail = subtitle.firstChildElement("detail").text();
    5964                        sub.date = subtitle.firstChildElement("subadddate").text();
Note: See TracChangeset for help on using the changeset viewer.