playrip 2.2.0__tar.gz → 2.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {playrip-2.2.0 → playrip-2.2.2}/PKG-INFO +1 -1
- {playrip-2.2.0 → playrip-2.2.2}/pyproject.toml +1 -1
- {playrip-2.2.0 → playrip-2.2.2}/src/playrip/Dowload.py +7 -10
- {playrip-2.2.0 → playrip-2.2.2}/README.md +0 -0
- {playrip-2.2.0 → playrip-2.2.2}/src/playrip/__main__.py +0 -0
- {playrip-2.2.0 → playrip-2.2.2}/src/playrip/cli.py +0 -0
- {playrip-2.2.0 → playrip-2.2.2}/src/playrip/get.py +0 -0
|
@@ -70,16 +70,11 @@ def Spotify(url, thumbnail):
|
|
|
70
70
|
res = requests.get(url, headers=headers)
|
|
71
71
|
soup = BeautifulSoup(res.text, "html.parser")
|
|
72
72
|
thumb = soup.find("meta", property="og:image")["content"]
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
titulo_spotify = titulo
|
|
79
|
-
artista = ""
|
|
80
|
-
if artista == "":
|
|
81
|
-
titulo_spotify = soup.find("meta", property="og:title")["content"]
|
|
82
|
-
artista = soup.find("meta", property="og:description")["content"].split(" · ")[0]
|
|
73
|
+
titulo_spotify = soup.find("meta", property="og:title")["content"]
|
|
74
|
+
artista = soup.find("meta", property="og:description")["content"].split(" · ")[0]
|
|
75
|
+
if ", " in artista:
|
|
76
|
+
artista = artista.split(", ")[0]
|
|
77
|
+
print(artista)
|
|
83
78
|
Novo_titulo_spotify = (
|
|
84
79
|
titulo_spotify.replace("/", "")
|
|
85
80
|
.replace("|", "")
|
|
@@ -90,6 +85,8 @@ def Spotify(url, thumbnail):
|
|
|
90
85
|
.replace(":", "")
|
|
91
86
|
.replace("\\", "")
|
|
92
87
|
)
|
|
88
|
+
if f" - Single by {artista} Spotify" in Novo_titulo_spotify:
|
|
89
|
+
Novo_titulo_spotify = Novo_titulo_spotify.replace(f" - Single by {artista} Spotify", "")
|
|
93
90
|
print(f"titulo da musica do spotify: {titulo_spotify}\n")
|
|
94
91
|
get.audio(artista=artista, titulo_da_musica=Novo_titulo_spotify, diretorio_destino=diretorio_destino)
|
|
95
92
|
audiofile = eyed3.load(f"{diretorio_destino}/{Novo_titulo_spotify}.mp3")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|