Пример #1
0
 def formatReport(self):
     try:
         w = winamp.winamp()
         if w is None:
             raise Exception("")
     except Exception, e:
         return "It looks like Winamp is not running at this moment: %s" %\
             str(e)
Пример #2
0
	def run(self):
		if os.name == 'nt':
			os.system('chcp 65001')
		self._fetcher = Fetcher()
		self._parser = Parser()
		self._winamp = winamp.winamp()
		self.last_played = ""
		while True:
			current = self.current_song()
			if current:
				cls()
				print(self.get_lyrics(current))
			time.sleep(1)
Пример #3
0
def derp():
        secs = 60
        w = winamp.winamp()
        mins = secs * 30
        halftime = mins/2
        countdown = 35
        countdown2 = 50
        w.play()
        time.sleep(halftime)
        while countdown:
               w.lowervol
               countdown -= 1
        time.sleep(halftime)
        w.stop()
        while countdown2:
        	w.raisevol
        	countdown2 -= 1
Пример #4
0
 def __init__(self):
     self.w = winamp.winamp()
Пример #5
0
def init():
    if _platform == "win32":
        global w
        import winamp  # http://www.shalabh.com/software/about_winamp_py.html

        w = winamp.winamp()
Пример #6
0
import winamp
import os
import time
import rpc
from tinytag import TinyTag  #Amazing for pulling text metadata from various filetypes easily, terrible for album art.
from mutagen import File  #Annoying for text metadata, also annoying for album art. But hey, I can at least get album art with this one.
import difflib
import asyncio
import textwrap

w = winamp.winamp()

client_id = '384403264210468874'
RPC = rpc.DiscordRPC(client_id)
RPC.start()


def text_format(songinfo):
    #Discord now force rich presence messages to a single line >:(
    artist = songinfo[0]
    track = songinfo[1]
    album = songinfo[2]
    if len(artist) >= 25:
        artist = artist[0:24] + "..."
    if len(track) >= 25:
        track = track[0:24] + "..."
    if len(album) >= 25:
        album = album[0:24] + "..."

    return track + artist + album
Пример #7
0
import winamp, time, subprocess, os
w = winamp.winamp()
def derp():
        secs = 60
        w = winamp.winamp()
        mins = secs * 30
        halftime = mins/2
        countdown = 35
        countdown2 = 50
        w.play()
        time.sleep(halftime)
        while countdown:
               w.lowervol
               countdown -= 1
        time.sleep(halftime)
        w.stop()
        while countdown2:
        	w.raisevol
        	countdown2 -= 1

def derp2():
        x = int(raw_input("""Options:
        1 Monitor Turn Off and music,
        2 Monitor Turn Off and no time limit on music,
        3 Monitor Turn Off
        4 Monitor Turn Off an set your own time: """))
        if x == 1:
             subprocess.Popen('nircmd.exe monitor off ')
             derp()
        elif x == 2:
             w.play()
Пример #8
0
 def load(self):
     self._w = winamp.winamp()
Пример #9
0
def init():
    if _platform == "win32":
        global w
        import winamp  # http://www.shalabh.com/software/about_winamp_py.html

        w = winamp.winamp()