Skip to content

Commit

Permalink
cli ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
zodman committed May 14, 2018
1 parent e0c4ec9 commit 67141e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
8 changes: 6 additions & 2 deletions conf.yaml.ini
Expand Up @@ -24,7 +24,7 @@ nyaa:
frozen_layer:
username: nyaauser
password: test
fansub_id: 740
fansub_id: 740 # Yeap el id de tu fansub
description: |
Redes sociales

Expand All @@ -36,13 +36,17 @@ frozen_layer:
pelana es el puto amo!
Bienvenido a la puya-lización!!! 5 años y aún cree que somos un fansub.

# El api key esta en: https://anidex.info/settings >> upload api

anidex_api_key: asda2213131321

anidex:
private: 1
description: |
description description description
group_id: 0
group_id: 0 # tu fansub
batch: 0
hentai: 0
reencode: 0
tt_api: 1
debug: 0
8 changes: 7 additions & 1 deletion rilis.py
Expand Up @@ -8,7 +8,9 @@

@click.group()
def cli():
pass
"""
<:3 )~~~ Fansub rilis tool by zodman
"""

@cli.command()
@click.argument("torrent")
Expand All @@ -34,6 +36,10 @@ def frozen(torrent, episode, anime_slug, images):
@click.option("--torrent_name", default="")
@click.argument("file")
def anidex(subcat_id, lang_id, torrent_name, file):
"""
Subir a anidex, por default subcat_id=1 lang_id=29
"""
params = get_conf("anidex")
if not torrent_name:
name = os.path.basename(file).replace(".torrent","")
Expand Down
3 changes: 3 additions & 0 deletions tasks.py
Expand Up @@ -2,6 +2,9 @@

@task
def deploy(ctx, up=False):
"""
script para generar el exe y subir a transfer para compartir
"""
ctx.run("pyinstaller -F rilis.py")
ctx.run("copy conf.yaml.ini dist\conf.yaml")
ctx.run("copy README.md dist\\ ")
Expand Down

0 comments on commit 67141e9

Please sign in to comment.