From 07bc8f4665e05b6d76ceb7468670d4bd852fcf36 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Das Date: Sat, 24 Feb 2024 22:02:20 +0530 Subject: [PATCH] fixed imports --- lib/utils/service_utils.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/service_utils.dart b/lib/utils/service_utils.dart index 1e69c0a8..04a58f9e 100644 --- a/lib/utils/service_utils.dart +++ b/lib/utils/service_utils.dart @@ -1,4 +1,5 @@ import 'dart:convert'; +import 'dart:io'; import 'package:flutter/widgets.dart' hide Element; import 'package:go_router/go_router.dart'; @@ -144,7 +145,7 @@ abstract class ServiceUtils { final String? x = scriptNameRegex.firstMatch(azLyricsGeoScript.body)?.group(1); - debugPrint("getAZLyrics -> Additional URL params: $x=$v"); + logger.t("Additional URL params: $x=$v"); final suggestionUrl = Uri.parse( "https://search.azlyrics.com/suggest.php?q=${title.replaceAll(RegExp(r"(\(.*\))"), "")} ${artists[0]}&${x.toString()}=${v.toString()}"); @@ -160,7 +161,7 @@ abstract class ServiceUtils { try { bestLyricsURL = searchResult["songs"][0]["url"]; - debugPrint("getAZLyrics -> bestLyricsURL: $bestLyricsURL"); + logger.t("bestLyricsURL: $bestLyricsURL"); } catch (e) { throw "No best Lyrics URL"; }