tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 8e50882e348433cd829e02b108fbac348b810367
parent 1f9fe4d4c1a072cc3ab4d0a4e92c208f5884438e
Author: rbckman <rob@tarina.org>
Date:   Wed, 20 Jan 2021 12:32:46 +0200

change module secrets to shortuuid

Diffstat:
Minstall.sh | 4++--
Mtarina.py | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/install.sh b/install.sh @@ -43,9 +43,9 @@ apt-get update apt-get upgrade -y if [ "$version" = "buster" ] then - apt-get -y install git python3-pip python-configparser ffmpeg mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount python3-numpy python3-pil python3-smbus + apt-get -y install git python3-pip python-configparser ffmpeg mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount python3-numpy python3-pil python3-smbus python3-shortuuid else - apt-get -y install git python3-pip python-configparser libav-tools mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount python3-numpy python3-pil python3-smbus + apt-get -y install git python3-pip python-configparser libav-tools mediainfo gpac omxplayer sox cpufrequtils apache2 libapache2-mod-wsgi-py3 libdbus-glib-1-dev dbus libdbus-1-dev usbmount python3-numpy python3-pil python3-smbus python3-shortuuid fi echo "installing python-omxplayer-wrapper..." sudo pip3 install omxplayer-wrapper diff --git a/tarina.py b/tarina.py @@ -27,7 +27,7 @@ import RPi.GPIO as GPIO from PIL import Image import socket import configparser -import secrets +import shortuuid import smbus #import shlex from blessed import Terminal @@ -298,7 +298,7 @@ def main(): writemessage('Good luck with your film ' + filmname + '!') #make a filmhash print('making filmhash...') - filmhash = secrets.token_urlsafe(16) + filmhash = shortuuid.uuid() with open(filmfolder + filmname + '/.filmhash', 'w') as f: f.write(filmhash) updatethumb = True