Skip to content

Commit

Permalink
More recent UserAgent (HaarigerHarald#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubo-fr authored Feb 10, 2022
1 parent 09716d0 commit c9044ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public abstract class YouTubeExtractor extends AsyncTask<String, Void, SparseArr
private final Lock lock = new ReentrantLock();
private final Condition jsExecuting = lock.newCondition();

private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36";
private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Safari/537.36";

private static final Pattern patYouTubePageLink = Pattern.compile("(http|https)://(www\\.|m.|)youtube\\.com/watch\\?v=(.+?)( |\\z|&)");
private static final Pattern patYouTubeShortLink = Pattern.compile("(http|https)://(www\\.|)youtu.be/(.+?)( |\\z|&)");
Expand Down

0 comments on commit c9044ef

Please sign in to comment.