Skip to content

Commit

Permalink
chore: remove unnecessary files and youtube_explode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingkor Roy Tirtho committed May 14, 2023
1 parent 962d911 commit 5a4e3ba
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 445 deletions.
101 changes: 0 additions & 101 deletions lib/entities/cache_track.dart

This file was deleted.

148 changes: 0 additions & 148 deletions lib/entities/cache_track.g.dart

This file was deleted.

31 changes: 0 additions & 31 deletions lib/extensions/piped.dart
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
import 'dart:convert';

import 'package:catcher/catcher.dart';
import 'package:http/http.dart';
import 'package:piped_client/piped_client.dart';
import 'package:spotube/entities/cache_track.dart';
import 'package:spotube/models/logger.dart';
import 'package:spotube/models/track.dart';
import 'package:spotube/provider/user_preferences_provider.dart';
import 'package:spotube/services/youtube.dart';
import 'package:spotube/utils/duration.dart';

extension PipedSearchItemExtension on PipedSearchItem {
static PipedSearchItemStream fromCacheTrack(CacheTrack cacheTrack) {
return PipedSearchItemStream(
type: PipedSearchItemType.stream,
url: "watch?v=${cacheTrack.id}",
title: cacheTrack.title,
uploaderName: cacheTrack.author,
uploaderUrl: "/channel/${cacheTrack.channelId}",
uploaded: -1,
uploadedDate: cacheTrack.uploadDate ?? "",
shortDescription: cacheTrack.description,
isShort: false,
thumbnail: "",
duration: cacheTrack.duration != null
? tryParseDuration(cacheTrack.duration!) ?? Duration.zero
: Duration.zero,
uploaderAvatar: "",
uploaderVerified: false,
views: cacheTrack.engagement.viewCount,
);
}
}

extension PipedStreamResponseExtension on PipedStreamResponse {
static Future<PipedStreamResponse> fromBackendTrack(
Expand Down
Loading

0 comments on commit 5a4e3ba

Please sign in to comment.