Ignore:
Timestamp:
May 3, 2016, 5:25:45 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.4

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

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

    r170 r176  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2626#ifdef OS_SEARCH_WORKAROUND
    2727        , best_search_count(0)
     28        , search_retries(8)
    2829#endif
    2930{
     
    3536}
    3637
     38#ifdef FS_USE_PROXY
    3739void OSClient::setProxy(const QNetworkProxy & proxy) {
    3840        rpc->setProxy(proxy);
    3941}
     42#endif
    4043
    4144void OSClient::login() {
     
    5962        search_hash = hash;
    6063        search_size = file_size;
     64
     65        disconnect(this, SIGNAL(loggedIn()), this, SLOT(doSearch()));
    6166
    6267        #if 0
     
    7681void OSClient::doSearch() {
    7782        best_search_count = -1;
    78         for (int n = 1; n < 8; n++) doSearch(n);
     83        for (int n = 1; n <= search_retries; n++) doSearch(n);
    7984}
    8085
Note: See TracChangeset for help on using the changeset viewer.