Commit ac66d2b 1 parent 7d60760 commit ac66d2b Copy full SHA for ac66d2b
File tree 6 files changed +14
-10
lines changed
6 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -845,7 +845,7 @@ class NamidaAudioVideoHandler<Q extends Playable> extends BasicAudioHandler<Q> {
845
845
width: prevVideoStream.width,
846
846
sizeInBytes: prevVideoStream.sizeInBytes,
847
847
frameratePrecise: prevVideoStream.fps.toDouble (),
848
- creationTimeMS: (prevVideoInfo? .publishedAt.date ?? prevVideoInfo? .publishDate.date )? .millisecondsSinceEpoch ?? 0 ,
848
+ creationTimeMS: (prevVideoInfo? .publishedAt.accurateDate ?? prevVideoInfo? .publishDate.accurateDate )? .millisecondsSinceEpoch ?? 0 ,
849
849
durationMS: prevVideoStream.duration? .inMilliseconds ?? 0 ,
850
850
bitrate: prevVideoStream.bitrate,
851
851
),
Original file line number Diff line number Diff line change @@ -1479,7 +1479,8 @@ class TracksAddOnTap {
1479
1479
if (date == null ) {
1480
1480
isLoadingVideoDate.value = true ;
1481
1481
final info = await YoutubeInfoController .video.fetchVideoStreams (currentVideoId, forceRequest: false );
1482
- date = info? .info? .publishedAt.date ?? info? .info? .publishDate.date;
1482
+ date = info? .info? .publishedAt.accurateDate ?? info? .info? .publishDate.accurateDate;
1483
+ date ?? = info? .info? .publishedAt.date ?? info? .info? .publishDate.date;
1483
1484
isLoadingVideoDate.value = false ;
1484
1485
}
1485
1486
if (date == null ) {
Original file line number Diff line number Diff line change @@ -112,10 +112,10 @@ class _YoutubeInfoUtils {
112
112
113
113
DateTime ? getVideoReleaseDate (String videoId) {
114
114
// -- we check for streams result first cuz others are approximation.
115
- return _tempInfoVideoReleaseDate[videoId] ?? = _getVideoStreamResultSync (videoId)? .info? .publishedAt.date ??
116
- tempVideoInfosFromStreams[videoId]? .publishedAt.date ??
117
- getStreamInfoSync (videoId)? .publishedAt.date ?? //
118
- _getVideoPageResultSync (videoId)? .videoInfo? .publishedAt.date ;
115
+ return _tempInfoVideoReleaseDate[videoId] ?? = _getVideoStreamResultSync (videoId)? .info? .publishedAt.accurateDate ??
116
+ tempVideoInfosFromStreams[videoId]? .publishedAt.accurateDate ??
117
+ getStreamInfoSync (videoId)? .publishedAt.accurateDate ?? //
118
+ _getVideoPageResultSync (videoId)? .videoInfo? .publishedAt.accurateDate ;
119
119
}
120
120
121
121
int ? getVideoDurationSeconds (String videoId) {
Original file line number Diff line number Diff line change @@ -156,11 +156,14 @@ class _YtFilenameRebuilder {
156
156
final id = pageResult? .channelInfo? .id ?? videoItem? .channel.id ?? streams? .info? .channelId;
157
157
return id == null ? null : YTUrlUtils .buildChannelUrl (id);
158
158
}(),
159
- 'timestamp' => (streams? .info? .publishDate.date ?? streams? .info? .uploadDate.date ?? pageResult? .videoInfo? .publishedAt.accurateDate ?? videoItem? .publishedAt.accurateDate)
159
+ 'timestamp' => (streams? .info? .publishDate.accurateDate ??
160
+ streams? .info? .uploadDate.accurateDate ??
161
+ pageResult? .videoInfo? .publishedAt.accurateDate ??
162
+ videoItem? .publishedAt.accurateDate)
160
163
? .millisecondsSinceEpoch
161
164
.toString (),
162
165
'upload_date' => () {
163
- final date = streams? .info? .publishDate.date ?? streams? .info? .uploadDate.date ?? videoItem? .publishedAt.accurateDate;
166
+ final date = streams? .info? .publishDate.accurateDate ?? streams? .info? .uploadDate.accurateDate ?? videoItem? .publishedAt.accurateDate;
164
167
return date == null ? null : DateFormat ('yyyyMMdd' ).format (date.toLocal ());
165
168
}(),
166
169
'view_count' =>
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ Future<void> showDownloadVideoBottomSheet({
181
181
onAudioSelectionChanged ();
182
182
onVideoSelectionChanged ();
183
183
updatefilenameOutput ();
184
- videoDateTime = videoInfo.value? .publishDate.date ?? videoInfo.value? .uploadDate.date ?? streamInfoItem? .publishedAt.accurateDate;
184
+ videoDateTime = videoInfo.value? .publishDate.accurateDate ?? videoInfo.value? .uploadDate.accurateDate ?? streamInfoItem? .publishedAt.accurateDate;
185
185
186
186
if (initialItemConfig == null ||
187
187
initialItemConfig.ffmpegTags.isEmpty ||
Original file line number Diff line number Diff line change 1
1
name : namida
2
2
description : A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
3
3
publish_to : " none"
4
- version : 4.7.32 -beta+241128186
4
+ version : 4.7.34 -beta+241128186
5
5
6
6
environment :
7
7
sdk : " >=3.4.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments