[39352] | 1 | """ |
---|
| 2 | urlresolver XBMC Addon |
---|
| 3 | Copyright (C) 2011 t0mm0 |
---|
| 4 | |
---|
| 5 | This program is free software: you can redistribute it and/or modify |
---|
| 6 | it under the terms of the GNU General Public License as published by |
---|
| 7 | the Free Software Foundation, either version 3 of the License, or |
---|
| 8 | (at your option) any later version. |
---|
| 9 | |
---|
| 10 | This program is distributed in the hope that it will be useful, |
---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 13 | GNU General Public License for more details. |
---|
| 14 | |
---|
| 15 | You should have received a copy of the GNU General Public License |
---|
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 17 | """ |
---|
| 18 | import os |
---|
| 19 | #from lib import log_utils # @UnusedImport |
---|
| 20 | #from lib.net import Net # @UnusedImport |
---|
| 21 | from lib import cache # @UnusedImport |
---|
| 22 | #from lib import kodi |
---|
| 23 | |
---|
| 24 | #addon_path = kodi.get_path() |
---|
| 25 | #plugins_path = os.path.join(addon_path, 'lib', 'urlresolver', 'plugins') |
---|
| 26 | #profile_path = kodi.translate_path(kodi.get_profile()) |
---|
| 27 | #settings_file = os.path.join(addon_path, 'resources', 'settings.xml') |
---|
| 28 | #addon_version = kodi.get_version() |
---|
| 29 | addon_version = '1.0' |
---|
| 30 | #get_setting = kodi.get_setting |
---|
| 31 | #set_setting = kodi.set_setting |
---|
| 32 | #open_settings = kodi.open_settings |
---|
| 33 | #has_addon = kodi.has_addon |
---|
| 34 | |
---|
| 35 | IE_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko' |
---|
| 36 | FF_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0' |
---|
| 37 | OPERA_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36 OPR/34.0.2036.50' |
---|
| 38 | IOS_USER_AGENT = 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25' |
---|
| 39 | ANDROID_USER_AGENT = 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36' |
---|
| 40 | SMU_USER_AGENT = 'URLResolver for Kodi/%s' % (addon_version) |
---|