Commit cbff86d0 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

raspbian wheezy compat tweak (old python-requests)

parent 3b11e317
AC_INIT([upmpdcli], [1.2.6], [jfd@lesbonscomptes.com],
AC_INIT([upmpdcli], [1.2.7], [jfd@lesbonscomptes.com],
[upmpdcli], [http://www.lesbonscomptes.com/upmpdcli])
AC_PREREQ([2.53])
AC_CONFIG_SRCDIR([src/upmpd.cxx])
......
upmpdcli (1.2.7-1) unstable; urgency=low
* Raspbian wheezy compat tweak, tidal python module only
-- Jean-Francois Dockes <jf@dockes.org> Sun, 09 Oct 2016 18:30:00 +0200
upmpdcli (1.2.6-1) unstable; urgency=low
* Small fixes, missing entries in protocolinfo etc.
......
......@@ -6,11 +6,11 @@ Group: Applications/Multimedia
License: GPLv2+
URL: http://www.lesbonscomptes.com/updmpdcli
Source0: http://www.lesbonscomptes.com/upmpdcli/downloads/upmpdcli-%{version}.tar.gz
Patch0: json-not-in-jsoncpp.patch
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires: python-requests
BuildRequires: libupnpp
BuildRequires: libupnp-devel
BuildRequires: libmpdclient-devel
......@@ -28,7 +28,6 @@ on Android tablets or phones.
%prep
%setup -q
%patch0 -p1
%build
%configure
......
......@@ -24,7 +24,10 @@ import json
import random
import logging
import requests
from requests.packages import urllib3
try:
from requests.packages import urllib3
except:
import urllib3
from collections import namedtuple
from .models import SubscriptionType, Quality
from .models import Artist, Album, Track, Playlist, SearchResult, Category
......@@ -70,7 +73,10 @@ class Session(object):
self.user = None
self.country_code = 'US' # Enable Trial Mode
self.client_unique_key = None
urllib3.disable_warnings() # Disable OpenSSL Warnings in URLLIB3
try:
urllib3.disable_warnings() # Disable OpenSSL Warnings in URLLIB3
except:
pass
def logout(self):
self.session_id = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment