Git Product home page Git Product logo

plugin.video.elementum's Introduction

Build Status Join the chat at https://gitter.im/ElementumApp/Lobby

Support

Development of plugin.video.elementum is stopped!

  • Do not expect any support, help and other things like that.
  • Source is open, so you can fork everything.

What it is

Elementum is a torrent finding and streaming engine. It doesn't go on torrent websites for legal reasons. However, it calls specially crafted add-ons (called providers) that are installed separately. They are normal Kodi add-ons, and thus can be installed/updated/distributed just like any other add-on.

This project is a fork of Quasar, created by scakemyer, which came from the well known, but no longer maintained Pulsar project from steeve. Thanks, guys, for your titanic work!

Supported platforms

  • Windows 32/64 bits
  • Linux 32/64 bits (starting Ubuntu 15.04)
  • Linux ARM (armv6, armv7, armv8/arm64)
  • Mac OS X 64 bits
  • Android ARM (for 4.4.x use 0.1.41, for 5+ use the latest build), x86, x64, ARM, ARM64

Minimum supported Kodi version: 16 (Jarvis)

Download

See the Releases page. Do NOT use the Download ZIP button on this page.

Installation

  • Go to Settings > Service settings > Control and enable both Application control options
  • Restart Kodi if one or both options were not enabled
  • Install Elementum like any other add-on

Build

plugin.video.elementum is distributed as a zip file, that includes:

  • plugin.video.elementum - responsible for starting Elementum application and connecting application to Kodi Python API.
  • elementum - The Elementum daemon itself, built on top of the cross-compiled libtorrent-go
  • libtorrent-go - The libtorrent library with Go bindings, built using cross-compiler
  • cross-compiler - Builds the base images to, you guessed it, cross-compile Elementum

To compile and make your own zip file, follow these steps:

In elementum folder:

# To pull all docker images, that contain all required compilers and libraries and come from https://github.com/ElementumOrg/libtorrent-go project
make pull-all

# To compile code for specific platform
make android-arm64-shared # Make shared library for android-arm64 platform 
make android-x86 # Make binary for android-arm64 platform

# To compile for all platforms
make all

It will compile binary files and place into /build folder.

In plugin.video.elementum folder:

# Run helper script that is taking existing binaries and Python part and make a zip file that can be used for installation in Kodi

# To get help on existing options
./bundle.sh --help 

# To use existing binaries, use only specific platform, add custom suffix into zip file and place zip file on a custom folder
./bundle.sh --binaries=/path/to/elementum/build --platform=android_arm64 --suffix=custom_suffix_to_add_into_zip --target=/destination/folder/

# To use existing binaries, collect all platforms and make zip file in current folder
./bundle.sh --binaries=/path/to/elementum/build 

Script will collect current plugin.video.elementum files (that you have on the disk) and binaries, that are stored in /build folder.

Created zip file can be installed on top of installed addon. Make sure to restart Kodi after installation to make sure you run installed code, and not the mix between old and new.

Build status of each project

elementum daemon
Build Status

For Developers' guide, please, refer to Elementum website

Release

Release is done by running release.sh script, that collects dependencies and makes zip files, and does release upload if we are on the tag.

How it works

Elementum is a torrent finding and streaming engine. It doesn't go on torrent websites for legal reasons. It calls specially crafted add-ons (called providers) that are installed separately. They are normal Kodi add-ons, and thus can be installed/updated/distributed just like any other add-on.

Elementum is centered around media: it browses media from TheMovieDB and Trakt.tv. And so, when you decide you want to watch a media (i.e. given an TMDB ID), here's what Elementum does:

  • Enumerate the installed providers
  • Call each provider to find the media you want to watch (in parallel)
  • Each provider returns a list of BT links they found
  • Collects and de-duplicates all the links
  • Goes on the BitTorrent network to find out the number of seeds and peers in real time (i.e. not provided by the provider)
  • Finds out of which quality are the different links (thanks to their name)
  • Ranks the links by quality and availability (Elementum privileges quality over availability, but it's not dumb. However, you can get a full list to choose from manually if you want, or disable 'Choose stream automatically' to always choose manually)
  • Sends the chosen link to the BitTorrent streaming engine

All of this is done in less than 10s depending on your platform and timeout settings. Elementum is around 95% Go, and thus, it's fast. Very fast, actually.

The BitTorrent streaming engine is very resilient (or at least it's designed to be). It's built on top of libtorrent package.

Providers

As said before, Elementum relies on providers to find streams. Providers are easy to write, and can be as little as ~20 lines of Python code. As they are normal Kodi add-ons, which can have their own configuration (although it is not recommended because it complicates things).

Please note that for legal reasons, I won't discuss, develop nor distribute any providers connecting to illegal sources. So there is no need to ask me. While I can partake in general discussions regarding provider development, I won't do so for illegal sources specific problems.

FAQ

I can't code. How can I help?

Spread the word. Talk about it with your friends, show them, make videos, tutorials. Talk about it on social networks, blogs, etc...

The plugin doesn't work, what can I do?

Please search currently open and closed issues to see if it has already been reported and/or fixed. If not then add a new issue with a short but descriptive title, a detailed description and of course a link to the logs. If you don't know how to do that, just follow the guide at: http://kodi.wiki/view/Log_file/Easy. If you actually went through the logs and know the relevant part, you can instead paste that, as long as it's shorter than a hundred lines or so, and please enclose it in triple back-quotes for readability.

Can I seek in a video?

Yes, but it can fail.

What about seeding?

When watching a torrent, you will be seeding while you watch the stream.

Does it download the whole file? Do I need the space? Is it ever deleted?

Yes, yes and yes.

Can I keep the file after watching it?

Yes, change it in the add-on settings.

Can I set it to download directly to my NAS?

Yes, but you need to mount your NAS via the OS, not via Kodi.

Provider X is blocked in my country/ISP, how can I set another domain?

Sorry, I won't comment of specific providers.

Screenshots

plugin.video.elementum's People

Contributors

abuisine avatar antonsoroko avatar assapir avatar burekas7 avatar dim0n22 avatar dmartinpro avatar elgatito avatar filosofos avatar greenbaburu avatar i96751414 avatar jellespijker avatar johnnyslt avatar killerjoebr avatar lam4hound avatar lrrosa avatar m4xc4v413r4 avatar matke-84 avatar muzena avatar nikondsl avatar nonew-star avatar penzinho avatar ramiro avatar razer1s avatar roliverosc avatar scakemyer avatar sonics007 avatar steeve avatar tobiasvandriessel avatar vlmaksime avatar zorg1977 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin.video.elementum's Issues

"Use Memory" Download Storage Type

This option is the most promising one and I can't wait to fully use it. Is it still in beta because I have tried to use it couple of times but with limited success?

My device is Xiaomi MIBOX3 with 2GB of RAM and Android TV 7.0. Memory size to use for each torrent is set to 350MB and download path is set to USB flash drive connected to a device. I am not sure why there is download path available because I don't see anything downloading there while playing. It does however when I use other storage options, like Use Files for example.

Some content plays fine but more often than less playback suddenly ends. I wonder if initial limit of 350MB is the reason why, I can put higher number but I think this memory option is dynamic by design, it should always have upcoming data available in memory and dynamically delete already watched parts?

Also, seems like pressing pause makes things slightly worse because playback usually breaks after resuming.

I'm looking forward for any troubleshooting you may need so please hit me with any request you may have.

Thank you.

EDIT: Some cleanup

[Request] Trakt Progress page

On Trakt you have a TV show progress section (https://trakt.tv/users/<user>/progress/watched/activity) that tells you what the next episode of your unfinished shows is. Would be cool to have this. I think this has already been implemented in this PR: scakemyer/quasar#40 but I imagine some changes will be required as I've seen some major refactoring in elementum.

How Do I Install

I really want to learn but I Googled addon.xml and don't understand how to manually add elementum.

The quasar install started with a download page listing many architectures. I don't find anything even remotely similar in the elementum github.com page.

I am quick to Google first, but I really can't seem to get started here. Any direction would be most appreciated.

Thanks.

Elementum 0.25 (arm7) not working

Elementum 0.25 (linux arm7 - libreelec) not working

Behavior:

  • daemon is starting
  • daemon is crashing
  • daemon is starting
  • daemon is crashing
  • daemon is starting
    ...

and so on.

[SOLVED] What port does the web interface of elementum listen to?

Dear maintainer.

Being a new user of elementum as of... today and an old user of quasar since mid-to-late 2016, I am trying to verify how things work here or how they have changed. One thing I use a lot is the web interface, which listens to

http://some-ip-of-my-local-network:65251/web/

While this does work on quasar, it does not work on elementum. Assuming it does have a web interface, which port does it listen to? And please write a small documentation about it too.

Please note that I can not find the relevant info about the web interface on quasar's github, but I do remember it was added on 0.9.47, so the only reference to it is this

https://github.com/scakemyer/plugin.video.quasar/releases/tag/v0.9.47

Thank you in advance.

OSError: [Errno 2] No such file or directory - Elementum Won't Start

Hello, thanks for the excellent work on this project. I'm having trouble getting it running on my OSMC Vero 4K. Here is the error I see.

CPU Info:
cat /proc/cpuinfo
Processor : AArch64 Processor rev 4 (aarch64)

Installed this version from Kodi: https://github.com/elgatito/plugin.video.elementum/releases/download/v0.0.28/plugin.video.elementum-0.0.28.zip

Error:

22:05:32.704 T:3587437312 NOTICE: [plugin.video.elementum] Binary detection: [ Source: /home/osmc/.kodi/addons/plugin.video.elementum/resources/bin/linux_arm-6/elementum, Destination: /home/osmc/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_arm-6/elementum ]
22:05:32.704 T:3587437312 NOTICE: [plugin.video.elementum] Binary dir: /home/osmc/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_arm-6, item: /home/osmc/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_arm-6/elementum
22:05:32.710 T:3587437312 NOTICE: [plugin.video.elementum] elementumd: start args: [u'/home/osmc/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_arm-6/elementum'], kw: {'close_fds': True, 'env': {'USERNAME': 'osmc', 'SUDO_COMMAND': '/usr/lib/kodi/kodi.bin --standalone -fs --lircdev /var/run/lirc/lircd', 'TERM': 'linux', 'SHELL': '/bin/bash', 'TZ': ':America/Los_Angeles', 'HOME': '/home/osmc', 'SUDO_UID': '0', 'SUDO_GID': '0', 'LD_LIBRARY_PATH': u'/home/osmc/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_arm-6:', 'KODI_BIN_HOME': '/usr/lib/kodi', 'LOGNAME': 'osmc', 'USER': 'osmc', 'KODI_HOME': '/usr/share/kodi', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'MAIL': '/var/mail/osmc', 'SUDO_USER': 'root', 'OS': 'Linux', 'PYTHONOPTIMIZE': '1'}, 'cwd': u'/home/osmc/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_arm-6', 'stderr': -2, 'stdout': -1}
22:05:32.756 T:3587437312 ERROR: [plugin.video.elementum] Traceback (most recent call last):
22:05:32.756 T:3587437312 ERROR: [plugin.video.elementum] File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 232, in elementumd_thread
22:05:32.756 T:3587437312 ERROR: [plugin.video.elementum] proc = start_elementumd(stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
22:05:32.757 T:3587437312 ERROR: [plugin.video.elementum] File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 210, in start_elementumd
22:05:32.757 T:3587437312 ERROR: [plugin.video.elementum] return subprocess.Popen(args, **kwargs)
22:05:32.757 T:3587437312 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/subprocess.py", line 390, in init
22:05:32.757 T:3587437312 ERROR: [plugin.video.elementum] errread, errwrite)
22:05:32.757 T:3587437312 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
22:05:32.758 T:3587437312 ERROR: [plugin.video.elementum] raise child_exception
22:05:32.758 T:3587437312 ERROR: [plugin.video.elementum] OSError: [Errno 2] No such file or directory
22:05:32.758 T:3587437312 ERROR: [plugin.video.elementum]
22:05:32.764 T:3587437312 ERROR: Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 232, in elementumd_thread
proc = start_elementumd(stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 210, in start_elementumd
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
22:05:55.927 T:3857318656 ERROR: GetDirectory - Error getting
22:05:57.131 T:3587437312 ERROR: Previous line repeats 6 times.
22:05:57.131 T:3587437312 NOTICE: [plugin.video.elementum] System information: linux_arm-6 3.14.29-51-osmc
22:05:57.131 T:3587437312 NOTICE: [plugin.video.elementum] Kodi build version: 17.6
22:05:57.132 T:3587437312 NOTICE: [plugin.video.elementum] OS type: Linux
22:05:57.132 T:3587437312 NOTICE: [plugin.video.elementum] uname: ('Linux', 'vero', '3.14.29-51-osmc', '#1 SMP Tue Jan 2 09:35:33 UTC 2018', 'arm', '')
22:05:57.276 T:4081037904 ERROR: GetDirectory - Error getting plugin://plugin.video.elementum/
22:05:57.276 T:4081037904 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.elementum/) failed

Changelog

Forgive me for not knowing where to ask. Is there a "changelog" for every version change? Where can I find?

[Feature] Add trakt 'Progress' feature

Currently the trakt 'progress' that is available is missing in this addon. Adding this and some of the trakt sync features already posted (two way sync, etc..) would be very nice.

Install?

Hello there,
I would like to install this addon on Kodi 17.6, but addon crashes upon installing in Kodi, after 3 restarts installation aborts.
Looks like deamon doesn't start...

I'm using Kodi 17.6 on Minix neo x64 (Windows 10 x86).
Any help would be appreciated. Cheers.

[Request] Hardcoded localhost in daemon

Hi,

Since there is no issues tab in the daemon repo, I'd like to report an issue here.

In the code the hostname for the generated http url is hardcoded to "localhost" (util/ip.go GetHTTPHost()). This is not an issue in general. What I'm trying to do in particular is send the http path generated by Elementum to a chromecast (via LocalCast or another app from a Android device), and that would only work if the path had the actual ip address or host name of my device.

I have tried changing the generated url from http://localhost:port/files/blahblahblah.mkv to http://theactualIP:port/files/blahblahblah.mkv and sending that to the chromecast, and it works. I have problems with docker, so I cannot compile Elementum and test the change myself.

Any chance to get the host reference dynamically? Or to configure it on the settings?

Thanks!

[BUG/Request] Background progress notification comes and goes

Expected Behavior

In Quasar the Background progress notification (dialog) shows each torrent progress and after all it shows the Total progress, and then cyclic back to show the torrent progress and so on.
(Notification shows up, torrent1 progress, torrent 2 progress, total progress, torrent1 progress, torrent 2 progress, total progress... and so on)
While all this time the notification is stay on screen.

Current Behavior

In Elementum it behaves like this:
Notification shows up, torrent1 progress, torrent 2 progress, total progress, Notification goes away, Notification comes in again. It's annoying the notification comes and goes from the screen on each cycle. It should be stay on screen all the time.

Your Environment

  • Version used: 0.0.30
  • Environment name and version: Kodi 17.6
  • Skin: Titan
  • Operating System and version: Windows 10 , 64 bit

[BUG] 'Run migration' - Could not migrate any item

Expected Behavior

All the quasar library items (Movies & TV Shows) should be copied to the Elementum library path, and changed to the Elementum .strm paths.
And please add an option in the settings under Migration of "Do not remove the Quasar addon on this operation" (Keep it)

Current Behavior

Shows error message: Could not migrate any item
And also removed the Quasar addon
See image: https://postimg.org/image/91l8jcdud/

Steps to Reproduce (for bugs)

Settings -> Migration -> Run migration -> Yes
(Then there is a warning message regarding Quasar)

  • At the first time kodi got stuck.
  • At the second time I got the error mwssage dialog.
  • Just to mention that Quasar process is also running in the background.

Log file:
https://pastebin.com/NunSkGkc

My Environment

  • Version used: Elementum v0.0.30
  • Environment name and version: Kodi 17.6 [Krypton]
  • Operating System and version: Windows 10, 64bit
  • Link to Kodi debug log: https://pastebin.com/NunSkGkc

[Questions/Bugs] Peers aren't shown & Upload stuck on 0kb/s & Download not stable

  1. Why there are no Peers anymore in the Overlay Status? (There are only Seeds)

  2. Why the upload rate is stuck on 0kb/s while downloading when I set maximum upload rate in the settings to 500kb/s for example (Is it connect to the issue that there are no peers anymore?)
    Is it should be like that?

  3. What could be the reason that the download speed is not so stable somtimes (Jumps 1M, 4M, 2M, 700k, 3M etc...)

  • Also I caught it one time that it show a negative Download speed (-300kb/s) .

My Environment

  • Version used: Elementum v0.0.30
  • Environment name and version: Kodi 17.6 [Krypton]
  • Operating System and version: Windows 10, 64bit

[Feature] Remove items from library according to Trakt's list status

Expected Behavior

It's more like a feature request.
It would be nice if the library is mirroring the current status of ones Trakt's list. So when you remove items from your lists they get removed in the library as well. Maybe make that feature selectable in options.
Current Behavior

Only items that are added to lists are synchronized to library - not deleting items.
Possible Solution
Steps to Reproduce (for bugs)

Not a bug
Context
Your Environment

Don't know if a log is needed.

Copied from Quasar's issue.

Speed

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Environment name and version:
  • Operating System and version:
  • Link to Kodi debug log:

Elementum don't work

Expected Behavior

Elementum start

Current Behavior

Elementum simply don't work

Possible Solution

Steps to Reproduce (for bugs)

  1. Try to start Elementum

Context

Your Environment

  • Version used:
    elementum-0.0.24
  • Environment name and version:
    Kodi 17.6 Krypton
  • Operating System and version:
    Linux Mint Cinnamon 18.3 64-bit
  • Link to Kodi debug log:
    See https://pastebin.com/TQ9QxGK0

Random crash

Every now and then I get a random crash. I have only the basic log as I have no way of reproducing it (since I don't know what steps cause it to crash). Seems to be an index out of range issue. Logs are here.

22:53:48.674 T:18446744071702055200  NOTICE: [plugin.video.elementum] panic: runtime error: index out of range
22:53:48.675 T:18446744071702055200  NOTICE: [plugin.video.elementum]
22:53:48.676 T:18446744071702055200  NOTICE: [plugin.video.elementum] goroutine 9135 [running]:
22:53:48.677 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*Torrent).piecePriority(...)
22:53:48.680 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/torrent.go:938
22:53:48.682 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*connection).updatePiecePriority(0x89952960, 0xffffffff, 0x1)
22:53:48.683 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/connection.go:609 +0x1c0
22:53:48.686 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*connection).peerSentHave(0x89952960, 0xffffffff, 0x1, 0x1)
22:53:48.688 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/connection.go:678 +0xa8
22:53:48.690 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*connection).mainReadLoop(0x89952960, 0x89952960, 0x896f91e0)
22:53:48.691 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/connection.go:843 +0x320
22:53:48.694 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*Client).runHandshookConn(0x89454480, 0x89952960, 0x896f91e0, 0x89a4ff01)
22:53:48.695 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/client.go:849 +0x190
22:53:48.697 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*Client).runInitiatedHandshookConn(0x89454480, 0x89952960, 0x896f91e0)
22:53:48.698 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/client.go:809 +0xf4
22:53:48.700 T:18446744071702055200  NOTICE: [plugin.video.elementum] github.com/anacrolix/torrent.(*Client).outgoingConnection(0x89454480, 0x896f91e0, 0x89879680, 0x13, 0xa9fac112, 0x2)
22:53:48.701 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/client.go:700 +0x194
22:53:48.702 T:18446744071702055200  NOTICE: [plugin.video.elementum] created by github.com/anacrolix/torrent.(*Client).initiateConn
22:53:48.704 T:18446744071702055200  NOTICE: [plugin.video.elementum]   /ext-go/2/src/github.com/anacrolix/torrent/client.go:519 +0x1f0

Also the following trace is there:

22:53:48.765 T:18446744071813724448   ERROR: [plugin.video.elementum] Traceback (most recent call last):
22:53:48.766 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/navigation.py", line 184, in run
22:53:48.767 T:18446744071813724448   ERROR: [plugin.video.elementum]     data = _json(url)
22:53:48.768 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/navigation.py", line 127, in _json
22:53:48.769 T:18446744071813724448   ERROR: [plugin.video.elementum]     with closing(urllib2.urlopen(url)) as response:
22:53:48.770 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/urllib2.py", line 154, in urlopen
22:53:48.770 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/urllib2.py", line 429, in open
22:53:48.771 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/urllib2.py", line 447, in _open
22:53:48.771 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/urllib2.py", line 407, in _call_chain
22:53:48.772 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/urllib2.py", line 1228, in http_open
22:53:48.772 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/urllib2.py", line 1201, in do_open
22:53:48.773 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/httplib.py", line 1136, in getresponse
22:53:48.774 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/httplib.py", line 453, in begin
22:53:48.774 T:18446744071813724448   ERROR: [plugin.video.elementum]   File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/httplib.py", line 417, in _read_status
22:53:48.777 T:18446744071813724448   ERROR: [plugin.video.elementum] BadStatusLine: ''
22:53:48.778 T:18446744071813724448   ERROR: [plugin.video.elementum]
22:53:48.953 T:18446744072242067744   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.elementum/search?q=Family+Guy+S16E10]

Some other errors too. I can't give you a debug log like I said as it happens randomly and I have no idea what's causing it.

Lastly, seems my system still isn't detected correct:

platform: Could not detect

So you're aware, I'm running Android TV. The CPU is capable of x64, but I think the OS is actually x86. See below the build properties:

BRAVIA_ATV2:/ $ cat /system/build.prop
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=NRD91N.S90
ro.build.display.id=BRAVIA_ATV2_EU-user 7.0 NRD91N.S90 1.6.0.26.71.1.00 release-keys
ro.build.version.incremental=1.6.0.26.71.1.00
ro.build.version.sdk=24
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=7.0
ro.build.version.security_patch=2017-08-01
ro.build.version.base_os=
ro.build.date=Wed Oct  4 18:14:42 JST 2017
ro.build.date.utc=1507108482
ro.build.type=user
ro.build.user=root
ro.build.host=BuildHost538
ro.build.tags=release-keys
ro.build.flavor=Trinity_EU-user
ro.product.model=BRAVIA 4K GB
ro.product.brand=Sony
ro.product.name=BRAVIA_ATV2_EU
ro.product.device=BRAVIA_ATV2
ro.product.board=BRAVIA_ATV2
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.manufacturer=Sony
ro.product.locale=en-GB
ro.wifi.channels=
ro.board.platform=mt5891
# ro.build.product is obsolete; use ro.product.device
ro.build.product=BRAVIA_ATV2
# Do not try to parse description, fingerprint, or thumbprint
ro.build.description=BRAVIA_ATV2_EU-user 7.0 NRD91N.S90 1.6.0.26.71.1.00 release-keys
ro.build.fingerprint=Sony/BRAVIA_ATV2_EU/BRAVIA_ATV2:7.0/NRD91N.S90/1.6.0.26.71.1.00:user/release-keys
ro.build.characteristics=nosdcard,tv
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
net.dns1=8.8.8.8
net.dns2=8.8.4.4
wifi.interface=wlan0
ro.opengles.version=196610
ro.sf.lcd_density=320
ro.camera.hal32.support=1
ro.hdmi.device_type=0
persist.bt.avrcp.ct=0
sys.mtk.tvremoteservice.ready=0
ro.mtk.twoworlds=1
ro.mtk.sys_driver_only=0
dalvik.vm.heapsize=512m
dalvik.vm.heapgrowthlimit=192m
ro.hwui.disable_scissor_opt=true
ro.hwui.drop_shadow_cache_size=6
ro.hwui.gradient_cache_size=1
ro.hwui.layer_cache_size=48
ro.hwui.path_cache_size=32
ro.hwui.r_buffer_cache_size=8
ro.hwui.text_large_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_small_cache_height=1024
ro.hwui.text_small_cache_width=1024
ro.hwui.texture_cache_flushrate=0.4
ro.hwui.texture_cache_size=48
dalvik.vm.heapstartsize=16m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.boot.flash.locked=1
ro.product.first_api_level=24
mtk.inside=1
ro.adb.secure=1
ro.config.media_vol_steps=100
mtk.omx.vdp=0
media.stagefright.codecremote=0
sys.display-size=3840x2160
sys.fw.alarmmanager=0
sys.fw.powermanager=0
mtk.wifi.driverinfo=1
media.aac_51_output_enabled=true
drm.service.enabled=true
ro.mtk.4k2k.photo=1
ro.mtk.disable_scrn_rt=1
mtk.browser.useCmpbPlayer=0
mtk.browser.alwaysFullscreen=0
mtk.browser.openLinkInSameTab=1
mtk.browser.freePlayerWhenPause=0
ro.mtk.pkg_version=t-apollo-dev-1501-1531-0-001-245-001-13-sony-t250-7-10
mtk.auto_test=0
ro.mtk.system.dmv=0
ro.mtk.camera.facingback=0
ro.mtk.system.tkui=0
use.cmpb.in.gallery=1
mtk.no_long_press_do_standby=1
mtk.pms.suspend_wait_timeout=10
mtk.screen.always.on=0
mtk.disable.screen.lock=1
mtk.tms_support=1
mtk.bgm_custom_flow=0
sys.mtk.keyDisable=0
persist.mtk.printk_level=0
persist.mtk.k2mlog=1
persist.logd.size.main=1M
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
ro.pm.warmboot=1
sys.pm.warmboot=1
sys.vold.autoflag=1
sys.pm.warmboot.flag=0
emulated.sdcard.dev=mmcblk0p47
persist.svp.dbg.psserver=0
persist.svp.dbg.pstore=0
persist.svp.dbg.irq_debug=0
persist.svp.dbg.copy2bugreport=0
persist.svp.dbg.sysrq=0
persist.sys.media.avsync=true
ro.camera.firmware.path=/system/vendor/firmware/quanta
ro.com.google.clientidbase=android-sony-tv
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=N_Q1_2017_BUILD_3783102
persist.sys.dalvik.vm.lib.2=libart.so
dalvik.vm.isa.arm.variant=cortex-a9
dalvik.vm.isa.arm.features=default
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.expect.recovery_id=<clipped>

Happy to give you other information if needed.

Adding movie scraper

When I search for content in Movies section of Elementum, I can see rating of a movie grabbed from themoviedb.org.

When I go to Trakt section of Elementum and find same movie, rating is grabbed from trakt.tv.

Information provider is The Movie Database add-on and imdb is set as default rating option.
Elementum setting for TV Show scraper is TheMovieDB.

It may not be Elementum related but it will be nice to override this and just use imdb.com ratings as they are still the most credible source.

This may be fixed maybe with installing Universal Movie Scraper and adding it as an option inside Elementum settings. I have tried it but it doesn't appear in scraper list.

[Request] Force 'Add to library' operation

Regarding to 'Add to library' operation:
Can you add an option for enable overwrite when items status returned as 'already in library'?
(For entire lists and also for single items)

The reason for that is because my library currently built by Quasar (but it could be also another addon), so for testing (for example) or just to make a parallel library folders, when I want to add an item or entire list in Elementum to his Library folders, some of them are recognized as 'already in library' (Because it was added before to kodi library by the other addon), and doesn't add them to the Elementum library folder.
A Force Add To Library option (Or just do not check if already in library) and overwrite folders if needed, could be helpful here.

Thanks.

nil pointer dereference when opening magnet links

Expected Behavior

Magnet links should work correctly.

Current Behavior

All Magnet links result in a nil pointer dereference in elementum/bittorrent/service.go

Steps to Reproduce (for bugs)

  1. Set up a provider that will return magnet links
  2. Try to open a magnet link from that provider

Your Environment

  • Version used: 0.0.23
  • Environment name and version: ARM v7 on a Raspberry Pi 3
  • Operating System and version: LibreElec 8.2.2 (Kodi 17.6)
  • Link to Kodi debug log: I censored the full Magnet URL from this log, which is why you'll see "XXXX" in some places - https://pastebin.com/FjaCS6pJ

impossible install to vero4k

19:44:36.221 T:3456099312 ERROR: [plugin.video.elementum] Traceback (most recent call last):
19:44:36.233 T:3860067312 DEBUG: CCurlFile::Open - effective URL: https://raw.githubusercontent.com/dvor85/kodi.repo/master/addons.xml.md5
19:44:36.280 T:3383751664 DEBUG: Thread FileCache start, auto delete: false
19:44:36.281 T:3383751664 INFO: CFileCache::Process - Source read didn't return any data! Hit eof(?)
19:44:36.293 T:4093637616 DEBUG: CRepositoryUpdateJob[repository.meta] checksum not changed.
19:44:36.293 T:4093637616 DEBUG: CRepositoryUpdateJob[repository.supremacy] checking for updates.
19:44:36.296 T:4093637616 DEBUG: CFileCache::Open - opening <Colossal1/repository.colossus.common/master/addons.xml.md5> using cache
19:44:36.296 T:4093637616 DEBUG: CurlFile::Open(0xd3a52920) https://raw.githubusercontent.com/Colossal1/repository.colossus.common/master/addons.xml.md5
19:44:36.306 T:3456099312 ERROR: [plugin.video.elementum] File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 221, in elementumd_thread
19:44:36.306 T:3456099312 ERROR: [plugin.video.elementum] proc = start_elementumd(stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
19:44:36.307 T:3456099312 ERROR: [plugin.video.elementum] File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 199, in start_elementumd
19:44:36.307 T:3456099312 ERROR: [plugin.video.elementum] return subprocess.Popen(args, **kwargs)
19:44:36.307 T:3456099312 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/subprocess.py", line 710, in init
19:44:36.308 T:3456099312 ERROR: [plugin.video.elementum] errread, errwrite)
19:44:36.308 T:3456099312 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
19:44:36.308 T:3456099312 ERROR: [plugin.video.elementum] raise child_exception
19:44:36.310 T:3456099312 ERROR: [plugin.video.elementum] OSError: [Errno 2] No such file or directory
19:44:36.311 T:3456099312 ERROR: [plugin.video.elementum]
19:44:36.312 T:4093637616 ERROR: CCurlFile::Open failed with code 404 for https://raw.githubusercontent.com/Colossal1/repository.colossus.common/master/addons.xml.md5
19:44:36.312 T:4093637616 ERROR: Open - failed to open source https://raw.githubusercontent.com/Colossal1/repository.colossus.common/master/addons.xml.md5
19:44:36.312 T:4093637616 ERROR: CRepository: failed read 'https://raw.githubusercontent.com/Colossal1/repository.colossus.common/master/addons.xml.md5'
19:44:36.331 T:3383751664 DEBUG: Thread FileCache 3383751664 terminating
19:44:36.331 T:3860067312 DEBUG: CFileCache::Open - opening <1.0/repositories/DiMartino/myshows.me-kodi-repo/raw/default/addons.xml.md5> using cache
19:44:36.331 T:3860067312 DEBUG: CurlFile::Open(0xd7780838) http://api.bitbucket.org/1.0/repositories/DiMartino/myshows.me-kodi-repo/raw/default/addons.xml.md5
19:44:36.333 T:4114235392 DEBUG: ------ Window Init (DialogNotification.xml) ------
19:44:36.393 T:4093637616 DEBUG: CRepositoryUpdateJob[repository.smash] checking for updates.
19:44:36.396 T:4093637616 DEBUG: CFileCache::Open - opening <Colossal1/repository.colossus.common/master/addons.xml.md5> using cache
19:44:36.396 T:4093637616 DEBUG: CurlFile::Open(0xd3a52920) https://raw.githubusercontent.com/Colossal1/repository.colossus.common/master/addons.xml.md5
19:44:36.411 T:3456099312 ERROR: Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 221, in elementumd_thread
proc = start_elementumd(stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/daemon.py", line 199, in start_elementumd
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Your Environment

  • Version used:
  • Environment name and version:
    Kodi 17 [Krypton]) and OSMC,
  • Operating System and version:

webui

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Environment name and version:
  • Operating System and version:
  • Link to Kodi debug log:

webui

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Environment name and version:
  • Operating System and version:
  • Link to Kodi debug log:

Creating a provider for web pages

I'm not sure if elementum would support this, but it would be cool to be able to write a provider that searches non-torrent based websites (1movies, alluc etc) that can then be used with the urlresolver addon for kodi. This is similar how the popular addon exodus worked. A separate provider addon would need to be written to search these sites, but the core needs to be able to support these.

Clicking recent shows crashes the addon

Expected Behavior

Current Behavior

Clicking recent shows crashes the addon
529 00:48:04.878 T:1524364272 NOTICE: [plugin.video.elementum] panic: runtime error: invalid memory address or nil pointer dereference
530 00:48:04.879 T:1524364272 NOTICE: [plugin.video.elementum] [signal SIGSEGV: segmentation violation code=0x1 addr=0xc pc=0x55ae60]
531 00:48:04.879 T:1524364272 NOTICE: [plugin.video.elementum]
532 00:48:04.880 T:1524364272 NOTICE: [plugin.video.elementum] goroutine 5261 [running]:
533 00:48:04.880 T:1524364272 NOTICE: [plugin.video.elementum] github.com/elgatito/elementum/tmdb.listShows.func1(0x11fdc170, 0x4, 0x12401260, 0x8ba4eb, 0xb, 0x11fdc140, 0x11ebc518, 0x12012060, 0x28, 0x11ea20d0
534 00:48:04.881 T:1524364272 NOTICE: [plugin.video.elementum] /ext-go/1/src/github.com/elgatito/elementum/tmdb/show.go:227 +0x27c
535 00:48:04.881 T:1524364272 NOTICE: [plugin.video.elementum] created by github.com/elgatito/elementum/tmdb.listShows
536 00:48:04.881 T:1524364272 NOTICE: [plugin.video.elementum] /ext-go/1/src/github.com/elgatito/elementum/tmdb/show.go:192 +0x440
537 00:48:04.887 T:1524364272 NOTICE: [plugin.video.elementum] System information: linux_arm-7 4.9.29-10-osmc
538 00:48:04.887 T:1524364272 NOTICE: [plugin.video.elementum] Kodi build version: 17.5
539 00:48:04.887 T:1524364272 NOTICE: [plugin.video.elementum] OS type: Linux
540 00:48:04.888 T:1524364272 NOTICE: [plugin.video.elementum] uname: ('Linux', 'osmc', '4.9.29-10-osmc', '#1 SMP PREEMPT Mon Oct 9 02:18:18 UTC 2017', 'armv7l', '')
541 00:48:04.894 T:1937765360 ERROR: [plugin.video.elementum] Traceback (most recent call last):
542 00:48:04.894 T:1937765360 ERROR: [plugin.video.elementum] File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/navigation.py", line 184, in run
543 00:48:04.894 T:1937765360 ERROR: [plugin.video.elementum] data = _json(url)
544 00:48:04.894 T:1937765360 ERROR: [plugin.video.elementum] File "/home/osmc/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/navigation.py", line 127, in _json
545 00:48:04.895 T:1937765360 ERROR: [plugin.video.elementum] with closing(urllib2.urlopen(url)) as response:
546 00:48:04.895 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
547 00:48:04.895 T:1937765360 ERROR: [plugin.video.elementum] return opener.open(url, data, timeout)
548 00:48:04.895 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/urllib2.py", line 431, in open
549 00:48:04.895 T:1937765360 ERROR: [plugin.video.elementum] response = self._open(req, data)
550 00:48:04.896 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/urllib2.py", line 449, in _open
551 00:48:04.896 T:1937765360 ERROR: [plugin.video.elementum] '_open', req)
552 00:48:04.896 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
553 00:48:04.896 T:1937765360 ERROR: [plugin.video.elementum] result = func(*args)
554 00:48:04.896 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/urllib2.py", line 1227, in http_open
555 00:48:04.896 T:1937765360 ERROR: [plugin.video.elementum] return self.do_open(httplib.HTTPConnection, req)
556 00:48:04.897 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open
557 00:48:04.897 T:1937765360 ERROR: [plugin.video.elementum] r = h.getresponse(buffering=True)
558 00:48:04.897 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse
559 00:48:04.897 T:1937765360 ERROR: [plugin.video.elementum] response.begin()
560 00:48:04.897 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/httplib.py", line 444, in begin
561 00:48:04.898 T:1937765360 ERROR: [plugin.video.elementum] version, status, reason = self._read_status()
562 00:48:04.898 T:1937765360 ERROR: [plugin.video.elementum] File "/usr/lib/python2.7/httplib.py", line 408, in _read_status
563 00:48:04.898 T:1937765360 ERROR: [plugin.video.elementum] raise BadStatusLine(line)
564 00:48:04.898 T:1937765360 ERROR: [plugin.video.elementum] BadStatusLine: ''
565 00:48:04.898 T:1937765360 ERROR: [plugin.video.elementum]

Possible Solution

Steps to Reproduce (for bugs)

  1. Open the addon
  2. Go to TV shows
  3. Click on recent shows

Context

Your Environment

3 00:45:40.665 T:1958526976 NOTICE: Starting Kodi (17.5). Platform: Linux ARM (Thumb) 32-bit
4 00:45:40.665 T:1958526976 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
5 00:45:40.665 T:1958526976 NOTICE: Kodi compiled Oct 29 2017 by GCC 4.9.2 for Linux ARM (Thumb) 32-bit version 3.16.39 (200743)
6 00:45:40.666 T:1958526976 NOTICE: Running on Open Source Media Center 2017.10-1, kernel: Linux ARM 32-bit version 4.9.29-10-osmc
7 00:45:40.666 T:1958526976 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
8 00:45:40.666 T:1958526976 NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available

[Feature] Populate watched from Trakt

Currently if you watch a show/movie it updates Kodi to say it's been watched, and from there something seems to pick it up and update Trakt's watch status. There's nothing that does the inverse though (if you mark a movie on trakt as watched, it won't show this on Kodi). It would be nice to have this as a two way sync.

Trakt lists

I have several trakt lists (shows that I watch on Netflix and shows that I watch on Kodi) and watchlist for shows that I am considering.
Adding of a trakt list to the library works correctly. But during trakt syncing tv shows from my watchlist and other trakt lists are added to the library as well.

Expected Behavior

Adding and syncing tv shows to the library just from selected trakt list.

Current Behavior

On the first selection and adding of a trakt list to the library shows are scanned and imported correctly.
Elementum trakt sync imports shows from other trakt lists into the library as well.
All unwanted shows can one by one be removed from the library from Elementum (context menu and remove from library). After that removed shows will not be imported again into the library. But after adding a new show in any of my trakt lists this show will be added as well.

Possible Solution

Steps to Reproduce (for bugs)

  1. Add a list to library.
  2. Wait for trakt sync on do it manually from Elementum settings.
  3. Shows from other lists start to populate library.

Context

Your Environment

  • Version used: 0.0.25
  • Environment name and version: Kodi 17.6
  • Operating System and version: Arch Linux 64bit

Library does not update

Expected Behavior

Library should update with new episodes when they air.

Current Behavior

Library does not add new episodes.

Context

I have added a few tvshows to the library, but when new episodes are released the library will not update to add the new episodes

Your Environment

  • Version used: Windows x64 0.0.12
  • Environment name and version: Kodi 17.6
  • Operating System and version: Windows 10

Is the elementum binary installed twice?

This is a duplicate of an issue I opened under quasar's github repo a few days ago, here
scakemyer#909

I noticed that the exact same thing happens in elementum too, so the questions remain, since elementum is a fork of quasar. The system configuration is also the same as in the other issue, but quasar was removed completely in order to test elementum's capabilities.

Here are the sums for elementum proving that the binary file is indeed the same.

$ md5sum .kodi/userdata/addon_data/plugin.video.elementum/bin/linux_x64/elementum 
25537b623ed28cc882d08832dbebd2b8  .kodi/userdata/addon_data/plugin.video.elementum/bin/linux_x64/elementum
$ md5sum .kodi/addons/plugin.video.elementum/resources/bin/linux_x64/elementum 
25537b623ed28cc882d08832dbebd2b8  .kodi/addons/plugin.video.elementum/resources/bin/linux_x64/elementum

Thank you in advance

[Bug] Issue when opening a show through Calendar > My Shows

Playing a show by going to calendar > my shows, plays the show, shows an error, then stops playing. When selecting a show to play from the results, it loads and plays the show, then the video screen gets overlayed with a "Playback failed" error. Clicking "OK" (only option), forces Kodi to stop playing the show.

Expected Behavior

No error should come up when it plays the show, and it should not stop the video

Current Behavior

Error shows up. Click OK on the error, stops the video to play.

Possible Solution

Can't give you a possible solution, but the workaround is to go into the show through any other means (search, watchlist etc) and then finding the same episode, and playing it from there.

Steps to Reproduce (for bugs)

  1. In Elementum go to TV Shows > Trakt > Calendar > My Shows
  2. Select a show that aired today (need to find a show with results)
  3. Select one of the results, and wait for it to buffer
  4. Once buffered, the show will play, but as soon as it starts playing, error message pops up.

Your Environment

  • Version used: latest
  • Environment name and version: Kodi 17.6, armv7l
  • Operating System and version: Android 7.0
  • Link to Kodi debug log: https://paste.ee/p/Ktwkf

Questions

I am unable to find any ansers to my questions so I am posting here.

  1. The add on works great for me, Thanks
  2. I keep getting this status thing over the top off the video while I am watching it. It gives me download info. I tried turning off "Enable Overlay Status" and rebooting but the damn overlay will not go away. It is very anoying.
  3. what is the difference between "Add to Library" and "Merge to Library?"

[Request] Allow to run daemon on an external device (pc, nas etc.)

Hello,

I realize it's very early for feature requests before you release a stable version, but I would like to propose factoring in the possibility of running the "Elementum" daemon on a different device than the one that runs Kodi (and plugin.video.elementum).

I have already tried to do this in the past with Pulsar, but here are the issues I run into:

A lot of places have 127.0.0.1 hardcoded for the communication with the torrent binary.

The binary always sends RPC commands to 127.0.0.1. It should probably figure out what device made the request then issue the play command to the RPC-port.

This makes it so, that, for example, even if you manage to run the binary separately (I did this with Kodi running on my PC as a "server" and on an Android tv box as a "client"), even if you manage to initiate a download on the "server' device, from the "client", the playback of the video will still be on the "server".

Hope you can consider this.

Addon repository not working

Hi, currently trying to get burst installed through the repository (had to manually push the actual addon), but without any luck. It then tells me to install it through the repository, but when I press the Element Repository, it says "Could not connect to repository". Any ideas what I can do? I'm happy to send the logs but I need to know where to find them.

Crashes on start : pthread_create failed: Resource temporarily unavailable

Expected Behavior

Current Behavior

Crashes on start.

Part of the log.

00:17:04.300 T:1521476592 NOTICE: [plugin.video.elementum] runtime/cgo: pthread_create failed: Resource temporarily unavailable
291 00:17:04.302 T:1521476592 NOTICE: [plugin.video.elementum] SIGABRT: abort
292 00:17:04.302 T:1521476592 NOTICE: [plugin.video.elementum] PC=0x76d288e6 m=2 sigcode=4294967290
293 00:17:04.303 T:1521476592 NOTICE: [plugin.video.elementum]
294 00:17:04.303 T:1521476592 NOTICE: [plugin.video.elementum] goroutine 0 [idle]:
295 00:17:04.303 T:1521476592 NOTICE: [plugin.video.elementum]
296 00:17:04.303 T:1521476592 NOTICE: [plugin.video.elementum] goroutine 1 [IO wait]:
297 00:17:04.304 T:1521476592 NOTICE: [plugin.video.elementum] internal/poll.runtime_pollWait(0x74ac4ce8, 0x72, 0x0)
298 00:17:04.304 T:1521476592 NOTICE: [plugin.video.elementum] /usr/local/go/src/runtime/netpoll.go:173 +0x44
299 00:17:04.304 T:1521476592 NOTICE: [plugin.video.elementum] internal/poll.(*pollDesc).wait(0x1161e884, 0x72, 0x11516d00, 0x0, 0x0)

Possible Solution

Steps to Reproduce (for bugs)

  1. Just install linux_armv7.zip on raspberry pi 3 running osmc

Context

Your Environment

OSMC Kodi (17.5).

 3 00:16:38.481 T:1958846464  NOTICE: Starting Kodi (17.5). Platform: Linux ARM (Thumb) 32-bit
 4 00:16:38.481 T:1958846464  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
 5 00:16:38.481 T:1958846464  NOTICE: Kodi compiled Oct 29 2017 by GCC 4.9.2 for Linux ARM (Thumb) 32-bit version 3.16.39 (200743)
 6 00:16:38.481 T:1958846464  NOTICE: Running on Open Source Media Center 2017.10-1, kernel: Linux ARM 32-bit version 4.9.29-10-osmc
 7 00:16:38.481 T:1958846464  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
 8 00:16:38.481 T:1958846464  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
 9 00:16:38.481 T:1958846464  NOTICE: ARM Features: Neon disabled

Starting playback of a previously downloaded/played torrent fails

If I am watching a torrent and I stop playback I am asked if I want to continue downloading. I say yes.

When I go to restart watching that torrent I get asked "Match found in your active tottent, play it?" I say Yes

Then I get asked 'Keep Downloading" I say Yes

Then I get "Can't find next item to play"

I have tested this on several TV episodes and movies.

I am running LibraELEC
Kodi 17.6

I can verify that there is the video file in the downloads folder configured in setting that matches the torrennt I want to resume playing. I can verify that If I use the Kodi "file exporing" and manually navigate to this file, it will play.

SOCKS5 Missing

One thing I noticed from Quasar to Elementum was the socks5 VPN missing

Any chance it will make a return?

Thank you

Very slow download speed

Expected Behavior

Download torrent speed with Quasar is around 4000 and 5000 Kbps on a VDSL line

Current Behavior

For the same torrents download speed is around 700 and 800 Kbps

Your Environment

[Request/Bug] Sync Watched/Unwatched with Trakt & Library integration

Hi,

Can you add any support for sync with Trakt if items were watched on not?
I have seen that you have mentioned that it should be fixed in version 29, but it's still showing all the items from the collection lists (Trakt -> Collection), it doesn't indicate the status of the items if they have been watched or not (There is no mark of 'watched')

Previous discussion is here:
scakemyer#518

I haven't test it yet with the library integration, but there was a problem with the library sync.
After watching through the library, it doesn't mark it as watched in the kodi library.
Related issue is here:
scakemyer#16

Thanks.

RPi3 getting temperature warning during buffering, speed close to zero

Expected Behavior

Provided there are enough seeders, Elementum should buffer at acceptable speeds and without any temperature warnings.

Current Behavior

The speed for any movie, no matter how many seeders, is close to zero. Sometimes the initial speed is good, but then it stalls and times out. The Raspberry Pi 3 gets overheated and gives temperature warnings. I tried with default settings as well as with a capped upload and download speed, and with a connection limit. I can't get anything to play. This also happens on another Raspberry Pi 3 with the same Kodi, LibreELEC and Elementum versions.

Steps to Reproduce

For me this happens any time I want to start a movie or TV series. No special actions needed.

Context

I was using on older version of Quasar before, which worked fine. I think it was 0.9.48, with magnetic. Quasar and all its related add-ons are disabled.

Environment

  • Version used:
    Elementum 0.0.18 ARMv7 (Burst 0.0.7)
  • Environment name and version:
    Kodi 17.6
  • Operating System and version:
    LibreELEC 8.2.1
  • Link to Kodi debug log:
    Full log (too large for pastbin): kodi.log

Does not play anything

Latest version keeps buffering up to 100% but then crashes with the error

One or more items failed to play. Check the logs for more information about this message.
The following is (I presume) the relevant error log:

22:25:29.814 T:2088786208  NOTICE: [plugin.video.elementum] �[36mDEBU  torrent      ▶ progressEvent    �[0mPR: 432133/0; "Downloading" = 3.22
22:25:30.325 T:18446744072099461408   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://localhost:65220/files/----clipped----.mkv
22:25:30.330 T:18446744071693433120  NOTICE: Creating InputStream
22:25:30.517 T:18446744071693433120   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
22:25:30.518 T:18446744071693433120   ERROR: CCurlFile::Open failed with code 0 for http://localhost:65220/files/----clipped----.mkv
22:25:30.814 T:2088786208  NOTICE: [plugin.video.elementum] �[36mDEBU  torrent      ▶ progressEvent    �[0mPR: 471454/0; "Downloading" = 3.29
22:25:31.436 T:18446744071693433120   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
22:25:31.437 T:18446744071693433120   ERROR: CCurlFile::Open failed with code 0 for http://localhost:65220/files/----clipped----.mkv
22:25:31.440 T:18446744071693433120   ERROR: Open - failed to open source <http://localhost:65220/files/----clipped----.mkv>
22:25:31.454 T:18446744071693433120   ERROR: CVideoPlayer::OpenInputStream - error opening [http://localhost:65220/files/----clipped----.mkv]
22:25:31.455 T:18446744071693433120  NOTICE: CVideoPlayer::OnExit()
22:25:31.481 T:18446744072099461408   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.elementum/show/----clipped---/season/7/episode/6/links]
22:25:31.485 T:18446744072099461408  NOTICE: CVideoPlayer::CloseFile()
22:25:31.486 T:18446744072099461408  NOTICE: VideoPlayer: waiting for threads to exit
22:25:31.486 T:18446744072099461408  NOTICE: VideoPlayer: finished waiting
22:25:31.488 T:18446744072099461408  NOTICE: CVideoPlayer::CloseFile()
22:25:31.488 T:18446744072099461408  NOTICE: VideoPlayer: waiting for threads to exit
22:25:31.488 T:18446744072099461408  NOTICE: VideoPlayer: finished waiting
22:25:31.813 T:2095671584   ERROR: EXCEPTION: XBMC is not playing any media file

after reboot torrent away

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Environment name and version:
  • Operating System and version:
  • Link to Kodi debug log:

hi after reboot the torrent disappeared https://paste.ubuntu.com/26274719/
I also can not play the torrent if it is downloading, on menu torrent .
i test it on Quasar en works fine , any suggestion what it can be

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.