From 0b4a32ee383b60eb79b3fcbee906dcb4bf4384a3 Mon Sep 17 00:00:00 2001 From: Oli Passey Date: Mon, 1 Jan 2018 20:18:39 +0000 Subject: [PATCH] Git Ignore & VidScraper Update --- .gitignore | 1 + plugin.video.vidscraper/addon.xml | 6 ++--- plugin.video.vidscraper/default.py | 39 ++---------------------------- 3 files changed, 6 insertions(+), 40 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ebb5ea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_repo_xml_generator.py \ No newline at end of file diff --git a/plugin.video.vidscraper/addon.xml b/plugin.video.vidscraper/addon.xml index 18c6037..2ec2701 100644 --- a/plugin.video.vidscraper/addon.xml +++ b/plugin.video.vidscraper/addon.xml @@ -1,5 +1,5 @@ - + @@ -11,8 +11,8 @@ Looking at code for scraping stuff from my blog all - http://www.noobsandnerds.com/support - www.noobsandnerds.com + + olipassey.me.uk tech,uk diff --git a/plugin.video.vidscraper/default.py b/plugin.video.vidscraper/default.py index 8cc0b5a..cdca135 100644 --- a/plugin.video.vidscraper/default.py +++ b/plugin.video.vidscraper/default.py @@ -1,39 +1,11 @@ # -*- coding: utf-8 -*- -""" ^ SECTION 1: - This should be at the top of your code to declare the type of text - format you're using. Without this you may find some text editors save - it in an incompatible format and this can make bug tracking extremely - confusing! More info here: https://www.python.org/dev/peps/pep-0263/ -""" - -#---------------------------------------------------------------- - -""" - SECTION 2: - This is where you'd put your license details, the GPL3 license - is the most common to use as it makes it easy for others to fork - and improve upon your code. If you're re-using others code ALWAYS - check the license first, removal of licenses is NOT allowed and you - generally have to keep to the same license used in the original work - (check license details as some do differ). - - Although not all licenses require it (some do, some don't), - you should always give credit to the original author(s). Someone may have spent - months if not years on the code so really it's the very least you can do if - you choose to use their work as a base for your own. -""" # License: GPL (http://www.gnu.org/licenses/gpl-3.0.html) -# Addon: My Python Koding Add-on -# Author: Add your name here +# Addon: VidScraper +# Author: Oli Passey (DoubleT) #---------------------------------------------------------------- -""" - SECTION 3: - This is your global imports, any modules you need to import code from - are added here. You'll see a handful of the more common imports below. -""" import os # access operating system commands import urlparse # splits up the directory path - much easier importing this than coding it up ourselves import xbmc # the base xbmc functions, pretty much every add-on is going to need at least one function from here @@ -51,13 +23,6 @@ from koding import route, Run # These are essential imports which allow us to op #---------------------------------------------------------------- -""" - SECTION 4: - These are our global variables, anything we set here can be accessed by any of - our functions later on. Please bare in mind though that if you change the value - of a global variable from inside a function the value will revert back to the - value set here once that function has completed. -""" addon_id = xbmcaddon.Addon().getAddonInfo('id') # Grab our add-on id dialog = xbmcgui.Dialog() # A basic dialog message command home_folder = xbmc.translatePath('special://home/')# Convert the special path of Kodi home folder to the physical path