Skip to content

Commit

Permalink
ytm getrelated bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantKArya committed Sep 27, 2024
1 parent 483f4e5 commit 8eadbce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/repository/Youtube/yt_music_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ class YtMusicService {
} else {
if (count == 0) {
artists += element['text'];
} else if (count == 1) {
} else if (count == 1 && subtitle.length>2) {
album += element['text'];
} else {
year = int.tryParse(element['text']);
Expand All @@ -1906,6 +1906,9 @@ class YtMusicService {
'musicVideoType',
]).toString()] ??
'';
if (album.contains('views')) {
album = '';
}
final Map details = {
'id': 'youtube$id',
'title': decodeUnicode(title),
Expand Down

0 comments on commit 8eadbce

Please sign in to comment.