diff --git a/CHANGELOG.md b/CHANGELOG.md index 611a4ab..9123b80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,4 +46,8 @@ ## 0.0.11 -- New extension: DownloadExtension adding `downloadStream` function. \ No newline at end of file +- New extension: DownloadExtension adding `downloadStream` function. + +## 0.0.12 + +- Bug fix(#15): Fix invalid upload date. \ No newline at end of file diff --git a/lib/src/extensions/playlist_extension.dart b/lib/src/extensions/playlist_extension.dart index 8c2d1fe..a65425a 100644 --- a/lib/src/extensions/playlist_extension.dart +++ b/lib/src/extensions/playlist_extension.dart @@ -44,7 +44,7 @@ extension PlaylistExtension on YoutubeExplode { var videoId = videoJson['encrypted_id']; var author = videoJson['author']; var uploadDate = DateTime.fromMillisecondsSinceEpoch( - videoJson['time_created'] * 100); + videoJson['time_created'] * 1000); var title = videoJson['title']; var description = videoJson['description']; var duration = Duration(seconds: videoJson['length_seconds']); diff --git a/pubspec.yaml b/pubspec.yaml index 37e2cbc..253c915 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: youtube_explode_dart description: A port in dart of the youtube explode library. Support serveral API functions. -version: 0.0.11 +version: 0.0.12 homepage: https://github.com/Hexer10/youtube_explode_dart environment: