mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 16:00:33 +05:30
Constructor cleanup.
This commit is contained in:
parent
3f6a601be8
commit
d4945ac55c
@ -51,8 +51,7 @@ public class AudioStream extends Stream {
|
|||||||
* @param itag the ItagItem to use
|
* @param itag the ItagItem to use
|
||||||
*/
|
*/
|
||||||
public AudioStream(String url, ItagItem itag) {
|
public AudioStream(String url, ItagItem itag) {
|
||||||
super(url, itag.getMediaFormat());
|
this(url, itag.getMediaFormat(), itag.avgBitrate);
|
||||||
this.average_bitrate = itag.avgBitrate;
|
|
||||||
this.bitrate = itag.bitrate;
|
this.bitrate = itag.bitrate;
|
||||||
this.initStart = itag.initStart;
|
this.initStart = itag.initStart;
|
||||||
this.initEnd = itag.initEnd;
|
this.initEnd = itag.initEnd;
|
||||||
|
@ -48,9 +48,7 @@ public class VideoStream extends Stream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public VideoStream(String url, boolean isVideoOnly, ItagItem itag) {
|
public VideoStream(String url, boolean isVideoOnly, ItagItem itag) {
|
||||||
super(url, itag.getMediaFormat());
|
this(url, itag.getMediaFormat(), itag.resolutionString, isVideoOnly);
|
||||||
this.resolution = itag.resolutionString;
|
|
||||||
this.isVideoOnly = isVideoOnly;
|
|
||||||
this.bitrate = itag.bitrate;
|
this.bitrate = itag.bitrate;
|
||||||
this.initStart = itag.initStart;
|
this.initStart = itag.initStart;
|
||||||
this.initEnd = itag.initEnd;
|
this.initEnd = itag.initEnd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user