Compare commits
No commits in common. "23cd8ac541aed7441987bd9b4e4dd16394d6eb61" and "4b51e44fa77ba846d8a4758f65cb10f33032f68d" have entirely different histories.
23cd8ac541
...
4b51e44fa7
2 changed files with 9 additions and 11 deletions
13
README.md
13
README.md
|
|
@ -26,13 +26,14 @@ This will create playlist.mp4
|
||||||
- install brew (https://brew.sh/)
|
- install brew (https://brew.sh/)
|
||||||
- install dependencies
|
- install dependencies
|
||||||
|
|
||||||
brew instlal python3
|
brew instlal python3
|
||||||
brew instlal git
|
brew instlal git
|
||||||
brew install libvpx libvorbis libopus
|
brew install libvpx libvorbis libopus
|
||||||
brew install ffmpeg --with-libvpx --with-libvorbis --with-libopus
|
brew install ffmpeg --with-libvpx --with-libvorbis --with-libopus
|
||||||
pip3 install ox
|
|
||||||
|
pip3 install ox
|
||||||
|
|
||||||
- install pandora_render
|
- install pandora_render
|
||||||
|
|
||||||
git clone https://code.0x2620.org/0x2620/pandora_render.git
|
git clone https://code.0x2620.org/0x2620/pandora_render.git
|
||||||
|
|
||||||
|
|
|
||||||
5
edit.py
5
edit.py
|
|
@ -142,7 +142,6 @@ if __name__ == '__main__':
|
||||||
'password': data['password']
|
'password': data['password']
|
||||||
}
|
}
|
||||||
|
|
||||||
update = False
|
|
||||||
if not credentials:
|
if not credentials:
|
||||||
try:
|
try:
|
||||||
credentials = ox.web.auth.get(site)
|
credentials = ox.web.auth.get(site)
|
||||||
|
|
@ -151,7 +150,7 @@ if __name__ == '__main__':
|
||||||
print('Please provide your username and password for %s:' % site)
|
print('Please provide your username and password for %s:' % site)
|
||||||
credentials['username'] = input('Username: ')
|
credentials['username'] = input('Username: ')
|
||||||
credentials['password'] = getpass.getpass('Password: ')
|
credentials['password'] = getpass.getpass('Password: ')
|
||||||
update = True
|
ox.web.auth.update(site, credentials)
|
||||||
|
|
||||||
api = API(base_url + '/api/')
|
api = API(base_url + '/api/')
|
||||||
r = api.signin(**credentials)
|
r = api.signin(**credentials)
|
||||||
|
|
@ -159,8 +158,6 @@ if __name__ == '__main__':
|
||||||
for kv in r['data']['errors'].items():
|
for kv in r['data']['errors'].items():
|
||||||
print('%s: %s' % kv)
|
print('%s: %s' % kv)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if update:
|
|
||||||
ox.web.auth.update(site, credentials)
|
|
||||||
print('Edit:', edit_id)
|
print('Edit:', edit_id)
|
||||||
print('Sort:', sort_by)
|
print('Sort:', sort_by)
|
||||||
r = api.getEdit(id=edit_id)
|
r = api.getEdit(id=edit_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue