Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nhCoder committed Dec 17, 2019
1 parent df1cbe7 commit 92fdc0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public void onClick(View p1) {
@Override
public void onExtractionDone(List<YTMedia> adativeStream, final List<YTMedia> muxedStream, YoutubeMeta meta) {

urls_li.clear();
for (YTMedia c:muxedStream) {
urls_li.add(c.getUrl());
adapter.notifyDataSetChanged();
Expand All @@ -120,8 +121,8 @@ public void onExtractionDone(List<YTMedia> adativeStream, final List<YTMedia> mu
urls_li.add(c.getUrl());
adapter.notifyDataSetChanged();
}
Toast.makeText(getApplicationContext(), meta.getTitle(), Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(), meta.getAuthor(), Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), meta.getTitle(), Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(), meta.getAuthor(), Toast.LENGTH_LONG).show();

if (muxedStream.isEmpty()) {
LogUtils.log("null ha");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public void Extract(String VideoId) {
protected void onPostExecute(Void result) {
if (Ex != null) {
listener.onExtractionGoesWrong(Ex);
} else
} else {
listener.onExtractionDone(adaptiveMedia, muxedMedia, ytmeta);

}
}

@Override
Expand Down Expand Up @@ -149,7 +149,6 @@ private List<YTMedia> parseUrls(YTMedia[] rawMedia) {
if (url_part.startsWith("s=")) {
String decodedSig=CipherManager.dechiperSig(URLDecoder.decode(url_part.replace("s=", "")), response.getAssets().getJs());
String FinalUrl;

if (tempUrl.contains("&lsig=")) {
FinalUrl = tempUrl + "&sig=" + decodedSig;
} else {
Expand All @@ -160,6 +159,8 @@ private List<YTMedia> parseUrls(YTMedia[] rawMedia) {
LogUtils.log(FinalUrl);
}
}
}else{
links.add(media);
}
}

Expand Down

0 comments on commit 92fdc0e

Please sign in to comment.