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

Commit

Permalink
fix pattern (#100)
Browse files Browse the repository at this point in the history
parseVideoMeta return null
  • Loading branch information
razar-dev authored and HaarigerHarald committed Aug 3, 2019
1 parent 9fe6028 commit 53a52aa
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public abstract class YouTubeExtractor extends AsyncTask<String, Void, SparseArr
private static final Pattern patDashManifest2 = Pattern.compile("\"dashmpd\":\"(.+?)\"");
private static final Pattern patDashManifestEncSig = Pattern.compile("/s/([0-9A-F|.]{10,}?)(/|\\z)");

private static final Pattern patTitle = Pattern.compile("title=(.*?)(&|\\z)");
private static final Pattern patAuthor = Pattern.compile("author=(.+?)(&|\\z)");
private static final Pattern patChannelId = Pattern.compile("ucid=(.+?)(&|\\z)");
private static final Pattern patLength = Pattern.compile("length_seconds=(\\d+?)(&|\\z)");
private static final Pattern patViewCount = Pattern.compile("view_count=(\\d+?)(&|\\z)");
private static final Pattern patTitle = Pattern.compile("title%22%3A%22(.*?)(%22|\\z)");
private static final Pattern patAuthor = Pattern.compile("author%22%3A%22(.+?)(%22|\\z)");
private static final Pattern patChannelId = Pattern.compile("channelId%22%3A%22(.+?)(%22|\\z)");
private static final Pattern patLength = Pattern.compile("lengthSeconds%22%3A%22(\\d+?)(%22|\\z)");
private static final Pattern patViewCount = Pattern.compile("viewCount%22%3A%22(\\d+?)(%22|\\z)");
private static final Pattern patStatusOk = Pattern.compile("status=ok(&|,|\\z)");

private static final Pattern patHlsvp = Pattern.compile("hlsvp=(.+?)(&|\\z)");
Expand Down

0 comments on commit 53a52aa

Please sign in to comment.