Skip to content

Commit c5ab106

Browse files
logical changes
1 parent 225a8d7 commit c5ab106

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It's basically build around an AsyncTask. Called from an Activity you can write
1414

1515
YouTubeUriExtractor ytEx = new YouTubeUriExtractor(this) {
1616
@Override
17-
public void onSourcesAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles) {
17+
public void onUrisAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles) {
1818
if(ytFiles!=null){
1919
int itag = 22;
2020
// itag is a Youtube format identifier, 22 for example is mp4 h264 1280x720

bin/youtubeExtractor.jar

-5 Bytes
Binary file not shown.

src/at/huber/sampleDownload/SampleDownloadActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private void getYoutubeDownloadUrl(String youtubeLink) {
6464
YouTubeUriExtractor ytEx=new YouTubeUriExtractor(this) {
6565

6666
@Override
67-
public void onSourcesAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles) {
67+
public void onUrisAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles) {
6868
mainProgressBar.setVisibility(View.GONE);
6969

7070
if(ytFiles==null){
@@ -75,7 +75,7 @@ public void onSourcesAvailable(String videoId, String videoTitle, SparseArray<Yt
7575
//Iterate over itags
7676
for(int i=0, itag=0; i < ytFiles.size(); i++){
7777
itag=ytFiles.keyAt(i);
78-
//source represents one download link with its meta data
78+
//ytFile represents one file with its uri and meta data
7979
YtFile ytFile=ytFiles.get(itag);
8080

8181
//Ignore the google proprietary webm format

src/at/huber/youtubeExtractor/YouTubeUriExtractor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public YouTubeUriExtractor(Activity act) {
8989

9090
@Override
9191
protected void onPostExecute(SparseArray<YtFile> ytFiles) {
92-
onSourcesAvailable(youtubeID, videoTitle, ytFiles);
92+
onUrisAvailable(youtubeID, videoTitle, ytFiles);
9393
}
9494

95-
public abstract void onSourcesAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles);
95+
public abstract void onUrisAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles);
9696

9797
@Override
9898
protected SparseArray<YtFile> doInBackground(String... params) {
@@ -221,7 +221,6 @@ public void run() {
221221
Log.d(getClass().getSimpleName(), "Decypher signature: " + mat.group(1));
222222
decipheredSignature=null;
223223
if (decipherSignature(mat.group(1), decipherFunctUrl, client)){
224-
;
225224
lock.lock();
226225
try{
227226
jsExecuting.await(3, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)