~knitzsche/junk/subscriptions

« back to all changes in this revision

Viewing changes to src/youtube/api/client.cpp

  • Committer: Pete Woods
  • Author(s): Marcus Tomlinson
  • Date: 2014-12-04 15:09:58 UTC
  • mfrom: (126.1.1 fix_update_config)
  • Revision ID: pete.woods@canonical.com-20141204150958-8cyacojscm9a7zjc
Fix update_config

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
    }
177
177
 
178
178
    void update_config() {
 
179
        config_ = Config();
 
180
 
179
181
        if (getenv("YOUTUBE_SCOPE_APIROOT")) {
180
182
            config_.apiroot = getenv("YOUTUBE_SCOPE_APIROOT");
181
183
        }
207
209
        }
208
210
 
209
211
        if (!config_.authenticated) {
210
 
            config_.access_token = "";
211
 
            config_.client_id = "";
212
 
            config_.client_secret = "";
213
212
            std::cerr << "YouTube scope is unauthenticated" << std::endl;
214
213
        } else {
215
214
            std::cerr << "YouTube scope is authenticated" << std::endl;