Compare commits
5 Commits
adab94cc7f
...
941eef9d54
Author | SHA1 | Date |
---|---|---|
rui | 941eef9d54 | |
Arjix | 9583a4979d | |
Arjix | 4b86991945 | |
Arjix | 5ffac4c9a2 | |
Arjix | 4964463181 |
21
.travis.yml
21
.travis.yml
|
@ -1,21 +0,0 @@
|
||||||
dist: bionic
|
|
||||||
language: python
|
|
||||||
|
|
||||||
python:
|
|
||||||
- "3.6"
|
|
||||||
- "3.7"
|
|
||||||
- "3.8"
|
|
||||||
|
|
||||||
cache: pip
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
before_install:
|
|
||||||
- pip install pytest-cov
|
|
||||||
install:
|
|
||||||
- pip install -e ".[dev]"
|
|
||||||
script:
|
|
||||||
- python -m pytest tests --cov=.
|
|
||||||
after_success:
|
|
||||||
- pip install codecov
|
|
||||||
- codecov
|
|
|
@ -4,9 +4,6 @@
|
||||||
<strong><i>A simple yet powerful tool for downloading anime.</i></strong>
|
<strong><i>A simple yet powerful tool for downloading anime.</i></strong>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://travis-ci.com/anime-dl/anime-downloader">
|
|
||||||
<img src="https://img.shields.io/travis/com/anime-dl/anime-downloader.svg?style=for-the-badge&logo=Travis%20CI">
|
|
||||||
</a>
|
|
||||||
<a href="https://codecov.io/gh/anime-dl/anime-downloader">
|
<a href="https://codecov.io/gh/anime-dl/anime-downloader">
|
||||||
<img src="https://img.shields.io/codecov/c/github/anime-dl/anime-downloader.svg?logo=codecov&style=for-the-badge">
|
<img src="https://img.shields.io/codecov/c/github/anime-dl/anime-downloader.svg?logo=codecov&style=for-the-badge">
|
||||||
</a>
|
</a>
|
||||||
|
@ -62,7 +59,7 @@ Yeah. Me too! That's why this tool exists.
|
||||||
- Animerush
|
- Animerush
|
||||||
- AnimeStar
|
- AnimeStar
|
||||||
- Animevibe
|
- Animevibe
|
||||||
- Dbanimes
|
- Dbanimes
|
||||||
- EraiRaws
|
- EraiRaws
|
||||||
- EgyAnime - usually m3u8 (good for streaming, not so much for downloading)
|
- EgyAnime - usually m3u8 (good for streaming, not so much for downloading)
|
||||||
- GenoAnime
|
- GenoAnime
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '5.0.17'
|
__version__ = '5.0.18'
|
||||||
|
|
|
@ -7,6 +7,7 @@ import click
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
import os
|
||||||
|
|
||||||
from anime_downloader import util
|
from anime_downloader import util
|
||||||
from anime_downloader.__version__ import __version__
|
from anime_downloader.__version__ import __version__
|
||||||
|
@ -66,12 +67,9 @@ def command(anime_name, new, update_all, _list, quality, remove,
|
||||||
util.print_info(__version__)
|
util.print_info(__version__)
|
||||||
watcher = _watch.Watcher()
|
watcher = _watch.Watcher()
|
||||||
|
|
||||||
with open(watcher.WATCH_FILE, "r") as f:
|
if not os.path.exists(watcher.WATCH_FILE):
|
||||||
contents = f.read()
|
with open(watcher.WATCH_FILE, "w") as f:
|
||||||
# print(contents)
|
f.write("[]")
|
||||||
if "[]" in contents or "[{}]" in contents:
|
|
||||||
logger.error("Add something to the watch list using `anime watch --new`")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if new:
|
if new:
|
||||||
if anime_name:
|
if anime_name:
|
||||||
|
@ -84,6 +82,13 @@ def command(anime_name, new, update_all, _list, quality, remove,
|
||||||
watcher.new(url)
|
watcher.new(url)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
with open(watcher.WATCH_FILE, "r") as f:
|
||||||
|
contents = f.read()
|
||||||
|
# print(contents)
|
||||||
|
if "[]" in contents:
|
||||||
|
logger.error("Add something to the watch list using `anime watch --new`")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if remove:
|
if remove:
|
||||||
anime = watcher.get(anime_name)
|
anime = watcher.get(anime_name)
|
||||||
if anime and click.confirm(
|
if anime and click.confirm(
|
||||||
|
|
Loading…
Reference in New Issue