
Recherche avancée
Autres articles (101)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (16600)
-
Anomalie #2644 (Nouveau) : Forum - Nombre de messages erroné
12 avril 2012, par Julien -Quand on se trouve sur le forum d’un objet particulier : / ?exec=controler_forum&objet=article&id_objet=4 Le nombre de messages affiché entre parenthèses : "Publié (2)" correspond au nombre de messages total et non au nombre de messages de l’objet particulier sur lequel on (...)
-
doc/filters : correct range for length in astats filter
9 avril 2018, par Gyan Doshi -
My code accidently deleted my 'song.mp3' file in Discord.py music bot
2 avril 2021, par AlkariaI was coding my discord bot and i was trying to make the bot not try to connect twice. Like, if it's already connected any user sends another ' !play' command, i don't want it to error. But that's not my problem. I or my code accidently deleted my 'song.mp3' file. How do i get it back. I closed the pycharm so i can't do 'CRTL + Z'.


@client.command()


async def play(ctx, url : str) :


song_there = os.path.isfile("song.mp3")
try:
 if song_there:
 os.remove("song.mp3")
except PermissionError:
 await ctx.send("Şimdi Çalan şarkının bitmesini bekleyin. Yada '!stop' komutunu kullanın.")
 return
# connects the voice channel
connected = ctx.author.voice
audio = discord.FFmpegPCMAudio("song.mp3")

voiceChannel = discord.utils.get(ctx.guild.voice_channels, name='music')
if not discord.client.VoiceClient == None: # None being the default value if the bot isnt in a channel (which is why the is_connected() is returning errors)
 await voiceChannel.connect()
 await ctx.send(f"Joined **{voiceChannel}**")
 discord.client.VoiceClient.play()
else:
 await ctx.send("I'm already connected!")



audio = discord.FFmpegPCMAudio("song.mp3")

# Dowloads the video from the link given

ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192',
 }],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([url])
for file in os.listdir("./"):
 if file.endswith(".mp3"):
 os.rename(file, "song.mp3")