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
|
||||
*/
|
||||
public AudioStream(String url, ItagItem itag) {
|
||||
super(url, itag.getMediaFormat());
|
||||
this.average_bitrate = itag.avgBitrate;
|
||||
this(url, itag.getMediaFormat(), itag.avgBitrate);
|
||||
this.bitrate = itag.bitrate;
|
||||
this.initStart = itag.initStart;
|
||||
this.initEnd = itag.initEnd;
|
||||
|
|
|
@ -48,9 +48,7 @@ public class VideoStream extends Stream {
|
|||
}
|
||||
|
||||
public VideoStream(String url, boolean isVideoOnly, ItagItem itag) {
|
||||
super(url, itag.getMediaFormat());
|
||||
this.resolution = itag.resolutionString;
|
||||
this.isVideoOnly = isVideoOnly;
|
||||
this(url, itag.getMediaFormat(), itag.resolutionString, isVideoOnly);
|
||||
this.bitrate = itag.bitrate;
|
||||
this.initStart = itag.initStart;
|
||||
this.initEnd = itag.initEnd;
|
||||
|
|
Loading…
Reference in New Issue