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

Commit

Permalink
Update YTMedia.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhPatange authored May 29, 2020
1 parent 9d69897 commit 8991e0d
Showing 1 changed file with 10 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,18 @@ public class YTMedia
double approxDurationMs;
int audioChannels;
int audioSampleRate;
String cipher;
String signatureCipher;
String audioQuality;
String url;
int fps;
boolean isVideo;


public boolean isVideo() {
return getMimeType().contains("video");
}

public void setFps(int fps) {
this.fps = fps;
}

public int getFps() {
return fps;
}




public void setItag(int itag)
{
Expand Down Expand Up @@ -178,14 +169,14 @@ public int getAudioSampleRate()
return audioSampleRate;
}

public void setCipher(String cipher)
public void setSignatureCipher(String signatureCipher)
{
this.cipher = cipher;
this.signatureCipher = signatureCipher;
}

public String getCipher()
public String getSignatureCipher()
{
return cipher;
return signatureCipher;
}

public void setAudioQuality(String audioQuality)
Expand All @@ -207,11 +198,11 @@ public String getUrl()
{
return url;
}

public boolean useCipher(){
return (cipher!=null && cipher.contains("s="));

return (signatureCipher !=null && signatureCipher.contains("s="));

}

}

0 comments on commit 8991e0d

Please sign in to comment.