diff options
Diffstat (limited to 'automedia.py')
-rwxr-xr-x | automedia.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/automedia.py b/automedia.py index 5670988..8e32a98 100755 --- a/automedia.py +++ b/automedia.py @@ -165,16 +165,6 @@ def get_tracked_html(html_tracked_dir): def show_notification(title, body, urgency="normal"): subprocess.Popen(["notify-send", "-u", urgency, "--", title, body]) -def fetch_page(url): - process = subprocess.Popen(["curl", "-s", "-L", "--output", "-", url], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - stdout, stderr = process.communicate() - if process.returncode != 0: - # TODO: Add file to list of failed files, so the user knows which they should manually download - if not only_show_finished_notification: - show_notification("Download failed", "Failed to fetch page: {}, error: {}".format(url, stderr.decode('utf-8')), urgency="critical") - return None - return stdout.decode('utf-8') - def is_torrent_daemon_running(): process = subprocess.Popen(["transmission-remote", "-si"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) process.communicate() |