From ad18c8cffbecf2126b4e77ad6ec6ae78ef017e0e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 8 Oct 2021 16:50:25 +0200 Subject: Show better output layout for tracking rss by name --- README.md | 3 ++- TODO | 1 + automedia | Bin 120760 -> 120760 bytes src/rss.c | 8 ++++---- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2fdf3b9..1ef4f62 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,10 @@ Automatically track new releases of media and download them. Currently works wit A notification is shown on the screen when a download finishes (if notify-send is installed). ## Installation -Run `sudo ./install.sh` to install AutoMedia, or first run `./release.sh` to build it yourself. If you are running Arch Linux, then you can find AutoMedia on aur under the name automedia-git (`yay -S automedia-git`). +Run `sudo ./install.sh` to install AutoMedia. If you are running Arch Linux, then you can find AutoMedia on aur under the name automedia-git (`yay -S automedia-git`). AutoMedia checks and downloads updates every 15 minutes. +Torrents stop seeding after a ratio of 2.0. ## Usage Run automedia with `sync` option and keep it running to track media. You can then use `add` option to add new media to track.\ Removing media from being synced can be done by removing the tracked directory in `~/.config/automedia/rss/tracked` or `~/.config/automedia/html/tracked` or by using `automedia cleanup`.\ diff --git a/TODO b/TODO index 700b55c..76d6aef 100644 --- a/TODO +++ b/TODO @@ -8,3 +8,4 @@ Deal with replacing of / with _. Handle strdup failure. Make downloading manga asynchronous, just like torrents. And have timeout for download. Remove mangadex legacy id conversion code in 2023. +Detect if a website is very slow (timeout?) and ignore sync for that website for the current sync. This is to prevent a slow website from preventing all syncs. diff --git a/automedia b/automedia index 0d36cc4..938cba1 100755 Binary files a/automedia and b/automedia differ diff --git a/src/rss.c b/src/rss.c index dadbacd..ebc0c02 100644 --- a/src/rss.c +++ b/src/rss.c @@ -263,10 +263,10 @@ static int get_rss_url_from_episode_info(const char *episode_name, EpisodeInfo * } for(;;) { - if(selected_submitter) - printf("Are you sure you want to track \"%s\" by %s after \"%s\"? (Y)es/No: ", generic_name, selected_submitter, episode_name); - else - printf("Are you sure you want to track \"%s\" by all submitters after \"%s\"? (Y)es/No: ", generic_name, episode_name); + printf("Filter: %s\n", generic_name); + printf("After: %s\n", episode_name); + printf("Submitter: %s\n", selected_submitter ? selected_submitter : "all submitters"); + printf("Is the tracking data above correct? (Y)es/(N)o: "); fflush(stdout); char sresp[128]; -- cgit v1.2.3