diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index 51e548167..afca16b1f 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -18,6 +18,7 @@ "addToFavorites": "Pridať k obľúbeným", "removeFromFavorites": "Odstrániť z obľúbených", "share": "Zdieľať", + "local": "Lokálne", "localAudio": "Lokálne audio", "localAudioDescription": "Vaša audio zbierka uložená v počítači.", "localAudioSubtitle": "Nie je potrebné pripojenie k internetu", @@ -304,6 +305,7 @@ "reorder": "Preusporiadať", "move": "Presunúť", "pinAlbum": "Pripnúť album na bočný panel", + "unPinAlbum": "Odopnúť album z bočného panela", "playAll": "Prehrať všetko", "hearingHistory": "História počúvania", "emptyHearingHistory": "V tejto relácii aplikácie ste ešte nepočúvali rozhlasové stanice.", @@ -322,5 +324,272 @@ "downloadEpisode": "Stiahnuť epizódu", "removeDownloadEpisode": "Odstrániť stiahnutú epizódu", "language": "Jazyk", - "duration": "Trvanie" -} \ No newline at end of file + "duration": "Trvanie", + "radioTagDisclaimerTitle": "Táto stanica vysiela veľa označení.", + "radioTagDisclaimerSubTitle": "Niekedy stanice vysielajú označenia, ktoré nezodpovedajú žiadnemu žánru hudby. MusicPod nezodpovedá za obsah!", + "podcastFeedLoadingTimeout": "Načítanie kanála podcastov trvá dlhšie ako zvyčajne...", + "gitHubClientConnectError": "Nepodarilo sa načítať online verziu z GitHubu.", + "replayEpisode": "Znova prehrať epizódu", + "replayAllEpisodes": "Znova prehrať všetky epizódy", + "checkForUpdates": "Skontrolovať aktualizácie", + "playbackWillStopIn": "Prehrávanie sa zastaví o: {duration} ({timeOfDay})", + "schedulePlaybackStopTimer": "Naplánovať čas zastavenia prehrávania", + "alwaysAsk": "Vždy sa pýtať", + "hideToTray": "Skryť na panel", + "closeBtnAction": "Akcia tlačidla Zavrieť", + "whenCloseBtnClicked": "Po kliknutí na tlačidlo Zavrieť", + "closeApp": "Zatvoriť aplikáciu", + "closeMusicPod": "Zatvoriť MusicPod?", + "confirmCloseOrHideTip": "Potvrďte prosím, či potrebujete aplikáciu zatvoriť alebo skryť?", + "doNotAskAgain": "Už sa nepýtaj", + "regionNone": "Žiadny", + "regionAfghanistan": "Afganistan", + "regionAlandislands": "Alandské ostrovy", + "regionAlbania": "Albánsko", + "regionAlgeria": "Alžírsko", + "regionAmericansamoa": "Americká Samoa", + "regionAndorra": "Andorra", + "regionAngolia": "Angolia", + "regionAnguilla": "Anguilla", + "regionAntarctica": "Antarktída", + "regionAntiguaandbarbuda": "Antigua a Barbuda", + "regionArgentina": "Argentína", + "regionArmenia": "Arménsko", + "regionAruba": "Aruba", + "regionAustralia": "Austrália", + "regionAustria": "Rakúsko", + "regionAzerbaijan": "Azerbajdžan", + "regionBahamas": "Bahamy", + "regionBahrain": "Bahrajn", + "regionBangladesh": "Bangladéš", + "regionBarbados": "Barbados", + "regionBelarus": "Bielorusko", + "regionBelgium": "Belgicko", + "regionBelize": "Belize", + "regionBenin": "Benin", + "regionBermuda": "Bermudy", + "regionBhutan": "Bhután", + "regionBolivia": "Bolívia", + "regionBonaire": "Bonaire", + "regionBosniaandherzegovina": "Bosna a Hercegovina", + "regionBotswana": "Botswana", + "regionBouvetisland": "Bouvetov ostrov", + "regionBrazil": "Brazília", + "regionBritishindianoceanterrirory": "Britské indické oceánske územie", + "regionBritishvirginislands": "Britské Panenské ostrovy", + "regionBruneidarussalam": "Brunej Darussalam", + "regionBulgaria": "Bulharsko", + "regionBurkinafaso": "Burkina Faso", + "regionBurundi": "Burundi", + "regionCaboverde": "Kapverdy", + "regionCambodia": "Kambodža", + "regionCameroon": "Kamerun", + "regionCanada": "Kanada", + "regionCaymanislands": "Kajmanské ostrovy", + "regionCentralafricanrepublic": "Stredoafrická republika", + "regionChad": "Čad", + "regionChile": "Čile", + "regionChina": "Čína", + "regionChristmasisland": "Vianočný ostrov", + "regionCocosislands": "Kokosové ostrovy", + "regionColombia": "Kolumbia", + "regionComoros": "Komory", + "regionCongo": "Kongo", + "regionCongodemocraticrepublicof": "Konžská demokratická republika", + "regionCookislands": "Cookove ostrovy", + "regionCostarica": "Kostarika", + "regionCotedivoire": "Pobrežie slonoviny", + "regionCroatia": "Chorvátsko", + "regionCuba": "Kuba", + "regionCuracao": "Curacao", + "regionCyprus": "Cyprus", + "regionCzechia": "Česko", + "regionDenmark": "Dánsko", + "regionDjibouti": "Džibutsko", + "regionDominica": "Dominika", + "regionDominicanrepublic": "Dominikánska republika", + "regionEcuador": "Ekvádor", + "regionEgypt": "Egypt", + "regionElsalvador": "El Salvador", + "regionEquatorialguinea": "Rovníková Guinea", + "regionEritrea": "Eritrea", + "regionEstonia": "Estónsko", + "regionEthiopia": "Etiópia", + "regionFalklandislands": "Falklandské ostrovy", + "regionFaroeislands": "Faerské ostrovy", + "regionFiji": "Fidži", + "regionFinland": "Fínsko", + "regionFrance": "Francúzsko", + "regionFrenchguiana": "Francúzska Guyana", + "regionFrenchpolynesia": "Francúzska Polynézia", + "regionFrenchsouthernterritories": "Francúzske južné územia", + "regionGabon": "Gabon", + "regionGambia": "Gambia", + "regionGeorgia": "Gruzínsko", + "regionGermany": "Nemecko", + "regionGhana": "Ghana", + "regionGibraltar": "Gibraltár", + "regionGreece": "Grécko", + "regionGreenland": "Grónsko", + "regionGrenada": "Grenada", + "regionGuadeloupe": "Guadeloupe", + "regionGuam": "Guam", + "regionGuatemala": "Guatemala", + "regionGuernsey": "Guernsey", + "regionGuinea": "Guinea", + "regionGuineabissau": "Guinea-Bissau", + "regionGuyana": "Guyana", + "regionHaiti": "Haiti", + "regionHeardislandandmcdonaldislands": "Heardov ostrov a McDonaldove ostrovy", + "regionHonduras": "Honduras", + "regionHongkong": "HongKong", + "regionHungary": "Maďarsko", + "regionIceland": "Island", + "regionIndia": "India", + "regionIndonesia": "Indonézia", + "regionIran": "Irán", + "regionIraq": "Irak", + "regionIreland": "Írsko", + "regionIsleofman": "Ostrov Man", + "regionIsrael": "Izrael", + "regionItaly": "Taliansko", + "regionJamaica": "Jamajka", + "regionJapan": "Japonsko", + "regionJersey": "Jersey", + "regionJordan": "Jordánsko", + "regionKazakhstan": "Kazachstan", + "regionKenya": "Keňa", + "regionKiribati": "Kiribati", + "regionKuwait": "Kuvajt", + "regionKyrgyzstan": "Kirgizsko", + "regionLaos": "Laos", + "regionLatvia": "Lotyšsko", + "regionLebanon": "Libanon", + "regionLesotho": "Lesotho", + "regionLiberia": "Libéria", + "regionLibya": "Líbya", + "regionLiechtenstein": "Lichtenštajnsko", + "regionLithuania": "Litva", + "regionLuxembourg": "Luxembursko", + "regionMacao": "Makao", + "regionMacedonia": "Macedónsko", + "regionMadagascar": "Madagaskar", + "regionMalawi": "Malawi", + "regionMalaysia": "Malajzia", + "regionMaldives": "Maldivy", + "regionMali": "Mali", + "regionMalta": "Malta", + "regionMarshallislands": "Marshallove ostrovy", + "regionMartinique": "Martinik", + "regionMauritania": "Mauritánia", + "regionMauritius": "Maurícius", + "regionMayotte": "Mayotte", + "regionMexico": "Mexiko", + "regionMicronesia": "Mikronézia", + "regionMoldova": "Moldavsko", + "regionMonaco": "Monako", + "regionMongolia": "Mongolsko", + "regionMontenegro": "Čierna Hora", + "regionMontserrat": "Montserrat", + "regionMorocco": "Maroko", + "regionMozambique": "Mozambik", + "regionMyanmar": "Mjanmarsko", + "regionNamibia": "Namíbia", + "regionNauru": "Nauru", + "regionNepal": "Nepál", + "regionNetherlands": "Holandsko", + "regionNewcaledonia": "Nová Kaledónia", + "regionNewzealand": "Nový Zéland", + "regionNicaragua": "Nikaragua", + "regionNiger": "Niger", + "regionNigeria": "Nigéria", + "regionNiue": "Niue", + "regionNorfolkisland": "Ostrov Norfolk", + "regionNorthkorea": "Severná Kórea", + "regionNorthernmarianaislands": "Severomarianske ostrovy", + "regionNorway": "Nórsko", + "regionOman": "Oman", + "regionPakistan": "Pakistan", + "regionPalau": "Palau", + "regionPalestine": "Palestína", + "regionPanama": "Panama", + "regionPapuanewguinea": "Papua Nová Guinea", + "regionParaguay": "Paraguaj", + "regionPeru": "Peru", + "regionPhilippines": "Filipíny", + "regionPitcairn": "Pitcairn", + "regionPoland": "Poľsko", + "regionPortugal": "Portugalsko", + "regionPuertorico": "Portoriko", + "regionQatar": "Katar", + "regionReunion": "Reunion", + "regionRomania": "Rumunsko", + "regionRussianfederation": "Rusko", + "regionRwanda": "Rwanda", + "regionSaintbarthelemy": "Svätý Bartolomej", + "regionSainthelena": "Svätá Helena", + "regionSaintkittsandnevis": "Svätý Krištof a Nevis", + "regionSaintlucia": "Saint lucia", + "regionSaintmartin": "Svätý Martin", + "regionSaintpierreandmiquelon": "Svätý Pierre a Miquelon", + "regionSaintvincentandthegrenadines": "Svätý Vincent a Grenadíny", + "regionSamoa": "Samoa", + "regionSanmarino": "San Maríno", + "regionSaotomeandprincipe": "Svätý Tomáš a Princov ostrov", + "regionSaudiarabia": "Saudská Arábia", + "regionSenegal": "Senegal", + "regionSerbia": "Srbsko", + "regionSeychelles": "Seychely", + "regionSierraleone": "Sierra Leone", + "regionSingapore": "Singapur", + "regionSintmaarten": "Svätý Martin", + "regionSlovakia": "Slovensko", + "regionSlovenia": "Slovinsko", + "regionSolomonislands": "Šalamúnove ostrovy", + "regionSomalia": "Somálsko", + "regionSouthafrica": "Južná Afrika", + "regionSouthgeorgiaandthesouthsandwichislands": "Južná Georgia a Južné Sandwichove ostrovy", + "regionSouthkorea": "Južná Kórea", + "regionSouthsudan": "Južný Sudán", + "regionSpain": "Španielsko", + "regionSrilanka": "Srí Lanka", + "regionSudan": "Sudán", + "regionSuriname": "Surinam", + "regionSvalbardandjanmayen": "Svalbard a Jan Mayen", + "regionSwaziland": "Svazijsko", + "regionSweden": "Švédsko", + "regionSwitzerland": "Švajčiarsko", + "regionSyrianarabrepublic": "Sýrska arabská republika", + "regionTaiwan": "Taiwan", + "regionTajikistan": "Tadžikistan", + "regionTanzania": "Tanzánia", + "regionThailand": "Thajsko", + "regionTimorleste": "Východný Timor", + "regionTogo": "Togo", + "regionTokelau": "Tokelau", + "regionTonga": "Tonga", + "regionTrinidadandtobago": "Trinidad a Tobago", + "regionTunisia": "Tunisko", + "regionTurkey": "Turecko", + "regionTurkmenistan": "Turkménsko", + "regionTurksandcaicosislands": "Ostrovy Turks a Caicos", + "regionTuvalu": "Tuvalu", + "regionUganda": "Uganda", + "regionUkraine": "Ukrajina", + "regionUnitedarabemirates": "Spojené arabské emiráty", + "regionUnitedkingdom": "Spojené kráľovstvo", + "regionUnitedstates": "Spojené štáty americké", + "regionUnitedstatesminoroutlyingislands": "Menšie odľahlé ostrovy Spojených štátov amerických", + "regionUruguay": "Uruguaj", + "regionUsvirginislands": "Americké Panenské ostrovy", + "regionUzbekistan": "Uzbekistan", + "regionVanuatu": "Vanuatu", + "regionVaticancity": "Vatikán", + "regionVenezuela": "Venezuela", + "regionVietnam": "Vietnam", + "regionWallisandfutuna": "Wallis a Futuna", + "regionWesternsahara": "Západná Sahara", + "regionYemen": "Jemen", + "regionZambia": "Zambia", + "regionZimbabwe": "Zimbabwe" +} diff --git a/lib/radio/radio_service.dart b/lib/radio/radio_service.dart index b802e4e54..3da33c565 100644 --- a/lib/radio/radio_service.dart +++ b/lib/radio/radio_service.dart @@ -54,7 +54,7 @@ class RadioService { String? state, String? tag, String? language, - int limit = 100, + required int limit, }) async { if (_radioBrowserApi == null) { return []; diff --git a/lib/radio/view/radio_history_tile.dart b/lib/radio/view/radio_history_tile.dart index 54b44bcf9..b7542d15f 100644 --- a/lib/radio/view/radio_history_tile.dart +++ b/lib/radio/view/radio_history_tile.dart @@ -5,7 +5,7 @@ import 'package:yaru/constants.dart'; import '../../common/data/audio.dart'; import '../../common/data/mpv_meta_data.dart'; import '../../common/view/icons.dart'; -import '../online_art_service.dart'; +import '../radio_model.dart'; import 'icy_image.dart'; import '../../common/view/mpv_metadata_dialog.dart'; import '../../common/view/tapable_text.dart'; @@ -59,8 +59,7 @@ class RadioHistoryTile extends StatelessWidget with PlayerMixin { onPressed: () => showDialog( context: context, builder: (context) { - final image = - di().get(entry.value.icyTitle); + final image = di().getCover(entry.value.icyTitle); return MpvMetadataDialog( mpvMetaData: entry.value, image: image, diff --git a/lib/search/search_model.dart b/lib/search/search_model.dart index 355d92c8c..847937c14 100644 --- a/lib/search/search_model.dart +++ b/lib/search/search_model.dart @@ -69,6 +69,7 @@ class SearchModel extends SafeChangeNotifier { void setSearchQuery(String? value) { if (value == _searchQuery) return; _podcastLimit = _podcastDefaultLimit; + _radioLimit = _radioDefaultLimit; _searchQuery = value; notifyListeners(); } @@ -147,6 +148,14 @@ class SearchModel extends SafeChangeNotifier { int _podcastLimit = _podcastDefaultLimit; void incrementPodcastLimit(int value) => _podcastLimit += value; + static const _radioDefaultLimit = 64; + int _radioLimit = _radioDefaultLimit; + void incrementRadioLimit(int value) => _radioLimit += value; + + void incrementLimit(int value) => _audioType == AudioType.podcast + ? incrementPodcastLimit(value) + : incrementRadioLimit(value); + bool loading = false; set _loading(bool value) { loading = value; @@ -179,7 +188,7 @@ class SearchModel extends SafeChangeNotifier { ) .then((_) => _loading = false), SearchType.radioTag => await _radioService - .search(tag: _tag?.name) + .search(tag: _tag?.name, limit: _radioLimit) .then( (v) => setRadioSearchResult( v?.map((e) => Audio.fromStation(e)).toList(), @@ -187,7 +196,7 @@ class SearchModel extends SafeChangeNotifier { ) .then((_) => _loading = false), SearchType.radioCountry => await _radioService - .search(country: _country?.name.camelToSentence) + .search(country: _country?.name.camelToSentence, limit: _radioLimit) .then( (v) => setRadioSearchResult( v?.map((e) => Audio.fromStation(e)).toList(), @@ -195,7 +204,10 @@ class SearchModel extends SafeChangeNotifier { ) .then((_) => _loading = false), SearchType.radioLanguage => await _radioService - .search(language: _language?.name.toLowerCase()) + .search( + language: _language?.name.toLowerCase(), + limit: _radioLimit, + ) .then( (v) => setRadioSearchResult( v?.map((e) => Audio.fromStation(e)).toList(), @@ -233,5 +245,5 @@ class SearchModel extends SafeChangeNotifier { } Future?> radioNameSearch(String? searchQuery) async => - _radioService.search(name: searchQuery); + _radioService.search(name: searchQuery, limit: _radioLimit); } diff --git a/lib/search/view/search_page.dart b/lib/search/view/search_page.dart index c93518a37..a4e04634a 100644 --- a/lib/search/view/search_page.dart +++ b/lib/search/view/search_page.dart @@ -58,9 +58,9 @@ class SearchPage extends StatelessWidget with WatchItMixin { return NotificationListener( onNotification: (notification) { if (notification.direction == ScrollDirection.reverse && - audioType == AudioType.podcast) { + audioType != AudioType.local) { di() - ..incrementPodcastLimit(8) + ..incrementLimit(8) ..search(); } return true; diff --git a/needs_translation.json b/needs_translation.json index 966932489..5336234ad 100644 --- a/needs_translation.json +++ b/needs_translation.json @@ -3280,278 +3280,6 @@ "regionZimbabwe" ], - "sk": [ - "local", - "unPinAlbum", - "radioTagDisclaimerTitle", - "radioTagDisclaimerSubTitle", - "podcastFeedLoadingTimeout", - "gitHubClientConnectError", - "replayEpisode", - "replayAllEpisodes", - "checkForUpdates", - "playbackWillStopIn", - "schedulePlaybackStopTimer", - "alwaysAsk", - "hideToTray", - "closeBtnAction", - "whenCloseBtnClicked", - "closeApp", - "closeMusicPod", - "confirmCloseOrHideTip", - "doNotAskAgain", - "regionNone", - "regionAfghanistan", - "regionAlandislands", - "regionAlbania", - "regionAlgeria", - "regionAmericansamoa", - "regionAndorra", - "regionAngolia", - "regionAnguilla", - "regionAntarctica", - "regionAntiguaandbarbuda", - "regionArgentina", - "regionArmenia", - "regionAruba", - "regionAustralia", - "regionAustria", - "regionAzerbaijan", - "regionBahamas", - "regionBahrain", - "regionBangladesh", - "regionBarbados", - "regionBelarus", - "regionBelgium", - "regionBelize", - "regionBenin", - "regionBermuda", - "regionBhutan", - "regionBolivia", - "regionBonaire", - "regionBosniaandherzegovina", - "regionBotswana", - "regionBouvetisland", - "regionBrazil", - "regionBritishindianoceanterrirory", - "regionBritishvirginislands", - "regionBruneidarussalam", - "regionBulgaria", - "regionBurkinafaso", - "regionBurundi", - "regionCaboverde", - "regionCambodia", - "regionCameroon", - "regionCanada", - "regionCaymanislands", - "regionCentralafricanrepublic", - "regionChad", - "regionChile", - "regionChina", - "regionChristmasisland", - "regionCocosislands", - "regionColombia", - "regionComoros", - "regionCongo", - "regionCongodemocraticrepublicof", - "regionCookislands", - "regionCostarica", - "regionCotedivoire", - "regionCroatia", - "regionCuba", - "regionCuracao", - "regionCyprus", - "regionCzechia", - "regionDenmark", - "regionDjibouti", - "regionDominica", - "regionDominicanrepublic", - "regionEcuador", - "regionEgypt", - "regionElsalvador", - "regionEquatorialguinea", - "regionEritrea", - "regionEstonia", - "regionEthiopia", - "regionFalklandislands", - "regionFaroeislands", - "regionFiji", - "regionFinland", - "regionFrance", - "regionFrenchguiana", - "regionFrenchpolynesia", - "regionFrenchsouthernterritories", - "regionGabon", - "regionGambia", - "regionGeorgia", - "regionGermany", - "regionGhana", - "regionGibraltar", - "regionGreece", - "regionGreenland", - "regionGrenada", - "regionGuadeloupe", - "regionGuam", - "regionGuatemala", - "regionGuernsey", - "regionGuinea", - "regionGuineabissau", - "regionGuyana", - "regionHaiti", - "regionHeardislandandmcdonaldislands", - "regionHonduras", - "regionHongkong", - "regionHungary", - "regionIceland", - "regionIndia", - "regionIndonesia", - "regionIran", - "regionIraq", - "regionIreland", - "regionIsleofman", - "regionIsrael", - "regionItaly", - "regionJamaica", - "regionJapan", - "regionJersey", - "regionJordan", - "regionKazakhstan", - "regionKenya", - "regionKiribati", - "regionKuwait", - "regionKyrgyzstan", - "regionLaos", - "regionLatvia", - "regionLebanon", - "regionLesotho", - "regionLiberia", - "regionLibya", - "regionLiechtenstein", - "regionLithuania", - "regionLuxembourg", - "regionMacao", - "regionMacedonia", - "regionMadagascar", - "regionMalawi", - "regionMalaysia", - "regionMaldives", - "regionMali", - "regionMalta", - "regionMarshallislands", - "regionMartinique", - "regionMauritania", - "regionMauritius", - "regionMayotte", - "regionMexico", - "regionMicronesia", - "regionMoldova", - "regionMonaco", - "regionMongolia", - "regionMontenegro", - "regionMontserrat", - "regionMorocco", - "regionMozambique", - "regionMyanmar", - "regionNamibia", - "regionNauru", - "regionNepal", - "regionNetherlands", - "regionNewcaledonia", - "regionNewzealand", - "regionNicaragua", - "regionNiger", - "regionNigeria", - "regionNiue", - "regionNorfolkisland", - "regionNorthkorea", - "regionNorthernmarianaislands", - "regionNorway", - "regionOman", - "regionPakistan", - "regionPalau", - "regionPalestine", - "regionPanama", - "regionPapuanewguinea", - "regionParaguay", - "regionPeru", - "regionPhilippines", - "regionPitcairn", - "regionPoland", - "regionPortugal", - "regionPuertorico", - "regionQatar", - "regionReunion", - "regionRomania", - "regionRussianfederation", - "regionRwanda", - "regionSaintbarthelemy", - "regionSainthelena", - "regionSaintkittsandnevis", - "regionSaintlucia", - "regionSaintmartin", - "regionSaintpierreandmiquelon", - "regionSaintvincentandthegrenadines", - "regionSamoa", - "regionSanmarino", - "regionSaotomeandprincipe", - "regionSaudiarabia", - "regionSenegal", - "regionSerbia", - "regionSeychelles", - "regionSierraleone", - "regionSingapore", - "regionSintmaarten", - "regionSlovakia", - "regionSlovenia", - "regionSolomonislands", - "regionSomalia", - "regionSouthafrica", - "regionSouthgeorgiaandthesouthsandwichislands", - "regionSouthkorea", - "regionSouthsudan", - "regionSpain", - "regionSrilanka", - "regionSudan", - "regionSuriname", - "regionSvalbardandjanmayen", - "regionSwaziland", - "regionSweden", - "regionSwitzerland", - "regionSyrianarabrepublic", - "regionTaiwan", - "regionTajikistan", - "regionTanzania", - "regionThailand", - "regionTimorleste", - "regionTogo", - "regionTokelau", - "regionTonga", - "regionTrinidadandtobago", - "regionTunisia", - "regionTurkey", - "regionTurkmenistan", - "regionTurksandcaicosislands", - "regionTuvalu", - "regionUganda", - "regionUkraine", - "regionUnitedarabemirates", - "regionUnitedkingdom", - "regionUnitedstates", - "regionUnitedstatesminoroutlyingislands", - "regionUruguay", - "regionUsvirginislands", - "regionUzbekistan", - "regionVanuatu", - "regionVaticancity", - "regionVenezuela", - "regionVietnam", - "regionWallisandfutuna", - "regionWesternsahara", - "regionYemen", - "regionZambia", - "regionZimbabwe" - ], - "sv": [ "shuffle", "repeat", diff --git a/pubspec.yaml b/pubspec.yaml index 476cfb8d1..ae6a0c631 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -96,7 +96,7 @@ flutter: - assets/images/tray_icon.png - CHANGELOG.md -dependency_overrides: +dependency_overrides: media_kit_native_event_loop: git: url: https://github.com/media-kit/media-kit diff --git a/test/radio_service_test.dart b/test/radio_service_test.dart index 4e38bc8f7..e5229d775 100644 --- a/test/radio_service_test.dart +++ b/test/radio_service_test.dart @@ -23,31 +23,44 @@ Future main() async { }); test('find6forty', () async { - final result = await service.search(name: '6forty'); + final result = await service.search( + name: '6forty', + limit: 10, + ); expect(result?.isNotEmpty, true); expect(result?.any((e) => e.name.contains('6forty')), true); expect(result?.any((e) => e.url == sixFortyStation.url), true); }); test('findByName', () async { - final result = await service.search(name: 'WDR'); + final result = await service.search( + name: 'WDR', + limit: 10, + ); expect(result?.isNotEmpty, true); expect(result?.any((e) => e.name.toLowerCase().contains('wdr')), true); }); test('findByCountry', () async { - final result = await service.search(country: 'Germany'); + final result = await service.search( + country: 'Germany', + limit: 10, + ); expect(result?.isNotEmpty, true); }); test('findByTag', () async { - final result = await service.search(tag: 'metal'); + final result = await service.search( + tag: 'metal', + limit: 10, + ); expect(result?.isNotEmpty, true); }); test('findByState', () async { final result = await service.search( state: 'nordrhein', + limit: 10, ); expect(result?.isNotEmpty, true); });