Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Adjusted playlist HTTP headers
Browse files Browse the repository at this point in the history
  • Loading branch information
markhaehnel committed Sep 2, 2016
1 parent 83c33b0 commit 0284dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ buildscript {
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:3.0.0'
}
}

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void run() {

String url = "https://www.youtube.com/get_video_info?&video_id=" + videoId.videoId;
Map<String, String> headers = new HashMap<>();
headers.put("User-Agent", "Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53");
headers.put("User-Agent", "Mozilla/5.0");

String ytResponse = NetworkHelper.getContentFromUrl(url, headers);

Expand Down

0 comments on commit 0284dfa

Please sign in to comment.