aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--src/QuickMedia.cpp19
-rw-r--r--src/plugins/LocalAnime.cpp4
3 files changed, 4 insertions, 22 deletions
diff --git a/TODO b/TODO
index d160342..da5fa70 100644
--- a/TODO
+++ b/TODO
@@ -289,4 +289,5 @@ Add option to get notified on any matrix event type (maybe have a config list wi
Add command to ignore/hide a room (should also not get notified when you are mentioned in the room).
Improve youtube live streaming performance. It's slow because mpv (ffmpeg) is slow at playing m3u8.
Add youtube config for allowing to specify download specific codec preference (or ignore video max height). Might have slow download so cant play high quality video but after downloading it it can be played.
-Fix youtube age restricted videos. \ No newline at end of file
+Fix youtube age restricted videos.
+Support youtube playlists (not just playing the video, but also going to the next video. Maybe use mpv playlist feature for this). Also show playlists in search result and in channel page. \ No newline at end of file
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 7641f79..513290e 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3274,9 +3274,6 @@ namespace QuickMedia {
update_window_focus_time.restart();
};
- int64_t youtube_video_content_length = 0;
- int64_t youtube_audio_content_length = 0;
-
AsyncTask<void> related_videos_task;
EventCallbackFunc video_event_callback;
bool go_to_previous_page = false;
@@ -3400,22 +3397,6 @@ namespace QuickMedia {
return false;
}
- if(is_youtube && !youtube_url_is_live_stream(video_url) && !youtube_url_is_live_stream(audio_url)) {
- youtube_video_content_length = 0;
- youtube_audio_content_length = 0;
- std::string new_video_url = video_url;
- std::string new_audio_url = audio_url;
- auto current_thread_id = std::this_thread::get_id();
- if(!youtube_custom_redirect(new_video_url, new_audio_url, youtube_video_content_length, youtube_audio_content_length, [current_thread_id]{ return !program_is_dead_in_thread(current_thread_id); })) {
- if(program_is_dead_in_current_thread())
- cancelled = true;
- return false;
- }
-
- video_url = std::move(new_video_url);
- audio_url = std::move(new_audio_url);
- }
-
return true;
});
diff --git a/src/plugins/LocalAnime.cpp b/src/plugins/LocalAnime.cpp
index e5c8e81..8ab9454 100644
--- a/src/plugins/LocalAnime.cpp
+++ b/src/plugins/LocalAnime.cpp
@@ -48,10 +48,10 @@ namespace QuickMedia {
static std::string_view anime_item_get_filename(const LocalAnimeItem &item) {
if(std::holds_alternative<LocalAnime>(item)) {
const LocalAnime &anime = std::get<LocalAnime>(item);
- return anime.name.c_str();
+ return anime.name;
} else if(std::holds_alternative<LocalAnimeSeason>(item)) {
const LocalAnimeSeason &season = std::get<LocalAnimeSeason>(item);
- return season.name.c_str();
+ return season.name;
} else if(std::holds_alternative<LocalAnimeEpisode>(item)) {
const LocalAnimeEpisode &episode = std::get<LocalAnimeEpisode>(item);
return episode.path.filename();