Video advances in streaming

Hello. System description: OpenELEC - Version: 6.0.3 (kernel: Linux 4.1.18) Kodi 15.2 Git: 02e7013 (Compiled: Mar 1 2016) CPU: ARMv7 Processor rev 5 (v7l) When I suffer the problem: - Only playing in streaming (with local movies I don't have any pr...

EPG Timeshift Settings

In the PVR IPTV Simple Client configuration there is a setting for EPG Time Shift. It seems to make no difference what I set it to even if I restart (disable and reenable) Live TV or clear the PVR database in the Live TV settings or power cycle KODI (G...

From Linux to Kodi Boxes with SSH – How?

Hi everyone. I hope that I'm posting this in the right place. We have 5 computers in our home, they're all Linux machines. Recently we purchased 2 TV Boxes with Kodi since we'd like to get our two "TV Computers" running more energy efficiently. We tri...

Addon Development

I have recently taken to xmbc and found plugin for everything I need. Unfortunately, four of my things I would like to be able to do, don't have addon. If someone could advise me how to make plugin that opens an external application, and a plugin tha...

Duplicate Entries in Trakt Watched History

Hi there, So I'm currently using the latest stable Emby Server and the latest stable Kodi Addon on my Windows 8.1 PC. I'm noticing that when I play local files that are on my hard drive (and in my Emby library), I will often see entries show up twice...

Problems with IMDb Top 250 updates and Emby for Kodi

Hello, First of, I am fully aware that Kodi Krypton is not supported until it reaches RC, but I nevertheless wanted to bring to your attention an issue I am having with the latest version of the addon (2.2.37 from the develop branch in your GitHub). ...

python scrpting for changing the channel

Hi, I am new to python scripting language , I want to write the code for stability , to change the video from HDMI to DVD, I want to run this whole night, I need scripting for this, can any one help me out with this. Thanks& Regards, Deepthi

Free Music Streaming Addons

Hi there, Are there any free Music Streaming Addons out there without the need for an premium account? Spotify and Deezer need Premium. What about Soundcloud, I think there is an Addon for Kodi too... Bane

Seeking suggestion for GPU

I am building a Linux-based HTPC for a friend who has been very impressed by my Kodi-PC. I am specifically looking for suggestions for a recommended video card. I have had the best luck myself with an NVIDIA card (dual HDMI outputs including CEC an...

errror-check file log

I am receiving an error code telling me to check the file log, I am clueless on how I need to fix this and this is my first time posting on any forum so I am not sure how this works. The instruction I received is to describe my problem and leave this u...

Recording options

I have MP1.15 and Kodi 16.1 on one machine (server), and Kodi 16.1 on a second machine (remote client) on the same wired network. When I choose to record something from the EPG on the server, I get the option to change how often that recording happens...

Remote Control App Connection – Device Not Found

Alright I'm about to pull my hair out. I use the Sybu app for controlling Kodi. All of the sudden it no longer connects nor 'finds' my Kodi devices. I have 2 Amazon Fires and a Pivos XS. I also used the old XBMC one as well as the app for Amazon Rem...

Prune Ended TVShows – A Script To Move Ended TVShows

Prune Ended Shows
A Script To Move Ended TVShows

I have written a script in bash that will move all TVShows with the status "Ended" to a separate directory. I find this useful because I have over 700 TVShows in my library, and I have noticed that this amount of files increases scan time when performing library updates.

To use this script you will need to first export your library into separate files, this will create the necessary nfo files that this script needs. Please note that this script requires you to use TheTVDB as a scraper!

You will also need to create a secondary directory to store TVShows that are no longer airing. I chose to call this folder "TVShows (Old)".

Next, use the script to move all your ended TVShows to your secondary directory. Make sure that you modify the script to work with your paths! I also suggest using your own API key for TheTVDB! Note that you can also easily customize the path of the logfile.

Code:
#!/bin/bash

# System readable timestamp
Date=`date +%Y%m%d%H%M%S`

# Human readable timestamp
Time=`date +%Y/%m/%d\ %H:%M:%S`

# Path to log file
# If file does not exist, it will be created
MyLog=~/PruneEndedShows"${Date}".log

# Path to TVShows
MyTVShowPath=~/TVShows/

# Path to Ended TVShows
MyEndedTVShowPath=~/TVShows\ \(Old\)/

# TheTVDB.com API key
MyAPIKey=1D62F2F90030C444

#----------------------------

touch "${MyLog}"
echo "${Time} - Started Processing Directory: ${MyTVShowPath}" >> "${MyLog}"

# Get list of TVShows
MyTVShowRegex="$(echo "${MyTVShowPath}" | sed -e 's/\//\\\//g')"
MyTVShowList="$(ls --format=single-column -d ${MyTVShowPath}*/ | sed -e 's/'"${MyTVShowRegex}"'//g')"

echo "The Following TVShows will be processed:" >> "${MyLog}"
echo "${MyTVShowList}" >> "${MyLog}"

IFS=$'\n' read -rd '' -a MyTVShowArray <<< "$MyTVShowList"

for ThisTVShowPath in "${MyTVShowArray[@]}"; do

    # Create temp file
    touch "${MyTVShowPath}${ThisTVShowPath}tmp.nfo"

    # Get TVShow ID from tvshow.nfo
    echo "Processing ${ThisTVShowPath}" >> "${MyLog}"
    ThisTVShowID="$(grep -hi "\<id\>" "${MyTVShowPath}${ThisTVShowPath}tvshow.nfo" | sed -e 's/\(\s\)\{0,\}<\/\?id>//g')"

    #Make URL
    ThisTVShowURL="http://www.thetvdb.com/api/${MyAPIKey}/series/${ThisTVShowID}/"

    # Download TVShow URL to temp file
    echo "Downloading MetaData from ${ThisTVShowURL}" >> "${MyLog}"
    wget -q "${ThisTVShowURL}" -O "${MyTVShowPath}${ThisTVShowPath}tmp.nfo"

    # Parse Temp NFO for status
    ThisTVShowStatus="$(grep -hi "\<status\>" "${MyTVShowPath}${ThisTVShowPath}tmp.nfo" | sed -e 's/\(\s\)\{0,\}<\/\?Status>//g')"
    echo "Status of ${ThisTVShowPath}: ${ThisTVShowStatus}" >> "${MyLog}"

    if [ "${ThisTVShowStatus}" == "Ended" ]; then

        echo "Moving files..." >> "${MyLog}"
        mv -fv "${MyTVShowPath}${ThisTVShowPath}" "${MyEndedTVShowPath}" >> "${MyLog}"

    fi


done

# Clean up temp files
echo "Cleaning up temp files" >> "${MyLog}"
rm -fv "${MyEndedTVShowPath}"*/tmp.nf >> "${MyLog}"
rm -fv "${MyTVShowPath}"*/tmp.nfo >> "${MyLog}"

# Finished
echo "Processing Complete" >> "${MyLog}"

Finally, you will need to add the secondary directory (ie. "TVShows (Old)") back into Kodi. Make sure you add it as its own source, and also exclude the path from library updates

Now only TVShows scheduled to continue will be included in your library updates! Big Grin

Playback randomly stops

I'm experiencing this issue since quite some time (probably since I installed v17) where the playback would just stop randomly when playing videos. It can happen 2 - 3 times when watching a TV show, or sometimes not at all. Tonight was really bad, I wa...