Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbering in end of video titles & get latest clip #51

Closed
ShivamThakkar1 opened this issue May 3, 2021 · 2 comments
Closed

Numbering in end of video titles & get latest clip #51

ShivamThakkar1 opened this issue May 3, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ShivamThakkar1
Copy link

ShivamThakkar1 commented May 3, 2021

In next update can you add youtube video titles numbering feature n
For example gaming video 1 gaming video 2...3...4...n

also to get latest twitch clips instead of most view clips

@PepNieto
Copy link

PepNieto commented May 4, 2021

I did something cheap it might work for u,
on config.py
u need to import those:

from __future__ import print_function
import atexit
from os import path
from json import dumps, loads


def read_counter():
    return loads(open("counter.json", "r").read()) + 1 if path.exists("counter.json") else 0

def write_counter():
    with open("counter.json", "w") as f:
        f.write(dumps(counter))

counter = read_counter()
atexit.register(write_counter)

and then in ur title u only need to add this
TITLE = "my title and many times i upload the content #{}".format(counter)

The problem with that is that i tried to put the name of the first clip and the count after it, but couldnt figure it out.

Anyways this repo is damn good, very well done.

Hope that helps you a bit.

@offish offish added the enhancement New feature or request label May 7, 2021
@offish
Copy link
Owner

offish commented May 7, 2021

A numbering feature is too specific in my opinion, so I won't work on that, but feel free to add it yourself and open a PR. I'll look into adding "latest" as an option.

@offish offish closed this as completed Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants