Comments (1)
Your Python version is 'too old', the 2-argument version of hashlib.md5
was introduced in 3.9:
(https://docs.python.org/3.9/library/hashlib.html):
Changed in version 3.9: All hashlib constructors take a keyword-only argument usedforsecurity with default value True. A false value allows the use of insecure and blocked hashing algorithms in restricted environments. False indicates that the hashing algorithm is not used in a security context, e.g. as a non-cryptographic one-way compression function.
Either update Python to something more current (3.10 is current, 3.9 would work as well) or remove the second parameter:
--- spodcast/spodcast/spodcast.py.org 2022-06-17 21:24:16.344970958 +0000
+++ spodcast/spodcast/spodcast.py 2022-06-17 21:24:34.076795874 +0000
@@ -58,7 +58,7 @@ class Spodcast:
cred_directory = Config.get_config_dir()
if os.path.isdir(cred_directory):
(username,password) = line.split()
- cred_filename = CREDENTIALS_PREFIX + "-" + hashlib.md5(username.encode('utf-8'),usedforsecurity=False).hexdigest() + ".json"
+ cred_filename = CREDENTIALS_PREFIX + "-" + hashlib.md5(username.encode('utf-8')).hexdigest() + ".json"
cred_location = os.path.join(cred_directory, cred_filename)
conf = Session.Configuration.Builder().set_stored_credential_file(cred_location).build()
session = Session.Builder(conf).user_pass(username, password).create()
from spodcast.
Related Issues (20)
- HTTP Redirect to Wrong URL when using non-standard port HOT 1
- Generate HTML Content Independent of Login HOT 2
- Does Spotify watermark the generated audio files? HOT 1
- Can't add feeds HOT 1
- Include airing date in Episode title HOT 1
- No such file or directory: 'ffmpeg' HOT 1
- Show with ID starting with 0 does not (completely) work
- Errors in web interface HOT 2
- Symbols in password causes errors using docker-compose
- Transcoding not working with docker-compose setup HOT 2
- Is there anyway we can also download the video too? HOT 4
- StatusCodeEception: 451 HOT 3
- legacy-install-failure: pycryptodomex
- Where is the run.sh file coming from? HOT 2
- Zombie 'Exited' containers HOT 2
- Can spodcast download podcasts that appear as tracks HOT 2
- trying to download a podcast... HOT 1
- Error when running
- Session.SpotifyAuthenticationException: PremiumAccountRequired HOT 7
- Protobuf Error, TypeError: Descriptors cannot not be created directly. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spodcast.