mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Removed url_shortener from sound handling module
This commit is contained in:
parent
1c8ee1a64f
commit
2c70fe46b7
@ -6,7 +6,6 @@ import subprocess
|
|||||||
import platform
|
import platform
|
||||||
import tempfile
|
import tempfile
|
||||||
import glob
|
import glob
|
||||||
import url_shortener
|
|
||||||
import audio_services
|
import audio_services
|
||||||
import paths
|
import paths
|
||||||
import sound_lib
|
import sound_lib
|
||||||
@ -121,7 +120,7 @@ class URLStream(object):
|
|||||||
""" Takes an URL and prepares it to be streamed. This function will try to unshorten the passed URL and, if needed, to transform it into a valid URL."""
|
""" Takes an URL and prepares it to be streamed. This function will try to unshorten the passed URL and, if needed, to transform it into a valid URL."""
|
||||||
log.debug("Preparing URL: %s" % (url,))
|
log.debug("Preparing URL: %s" % (url,))
|
||||||
self.prepared = False
|
self.prepared = False
|
||||||
self.url = url_shortener.unshorten(url)
|
self.url = url
|
||||||
if self.url == None:
|
if self.url == None:
|
||||||
self.url = url
|
self.url = url
|
||||||
log.debug("Expanded URL: %s" % (self.url,))
|
log.debug("Expanded URL: %s" % (self.url,))
|
||||||
|
Loading…
Reference in New Issue
Block a user