@@ -52,7 +52,8 @@ class Feed {
5252 final timeout = const Duration (seconds: 20 ),
5353 String userAgent = '' ,
5454 }) async {
55- return _loadFeedInternal (url: url, etag: etag, timeout: timeout, userAgent: userAgent);
55+ return _loadFeedInternal (
56+ url: url, etag: etag, timeout: timeout, userAgent: userAgent);
5657 }
5758
5859 static Future <Podcast > loadFeedFile ({required String file}) async {
@@ -199,11 +200,11 @@ class Feed {
199200 case DioExceptionType .connectionError:
200201 throw PodcastFailedException (statusCode, e.message ?? '' );
201202 case DioExceptionType .badResponse:
202- if (statusCode == 304 ) {
203- throw PodcastNotChangedException (statusCode, e.message ?? '' );
204- } else {
205- throw PodcastFailedException (statusCode, e.message ?? '' );
206- }
203+ if (statusCode == 304 ) {
204+ throw PodcastNotChangedException (statusCode, e.message ?? '' );
205+ } else {
206+ throw PodcastFailedException (statusCode, e.message ?? '' );
207+ }
207208 case DioExceptionType .badCertificate:
208209 throw PodcastCertificateException (statusCode, e.message ?? '' );
209210 case DioExceptionType .cancel:
@@ -235,7 +236,8 @@ class Feed {
235236 if (response.statusCode == 200 ) {
236237 _loadChapters (response, chapters);
237238 } else {
238- throw PodcastFailedException (response.statusCode ?? 0 , 'Failed to download chapters file' );
239+ throw PodcastFailedException (
240+ response.statusCode ?? 0 , 'Failed to download chapters file' );
239241 }
240242 } on DioException catch (e) {
241243 int statusCode = e.response? .statusCode ?? 0 ;
@@ -284,9 +286,8 @@ class Feed {
284286 );
285287
286288 try {
287- final response = headOnly
288- ? await client.head (url)
289- : await client.get (url);
289+ final response =
290+ headOnly ? await client.head (url) : await client.get (url);
290291
291292 DateTime ? lastUpdated;
292293 String etag = '' ;
@@ -352,7 +353,8 @@ class Feed {
352353 }
353354 }
354355
355- static Podcast _loadFeed (RssFeed rssFeed, String url, String etag, DateTime ? lastUpdtaed) {
356+ static Podcast _loadFeed (
357+ RssFeed rssFeed, String url, String etag, DateTime ? lastUpdtaed) {
356358 // Parse the episodes
357359 var episodes = < Episode > [];
358360 var remoteItems = < RemoteItem > [];
0 commit comments