Constructor cleanup.

This commit is contained in:
FireMasterK 2021-02-11 21:05:05 +05:30
parent 3f6a601be8
commit d4945ac55c
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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;