elgatito / plugin.video.elementum

Elementum add-on for Kodi. Development of this addon has been stopped!
http://elementum.surge.sh
MIT License
475 stars 157 forks source link

Migration to libtorrent #351

Closed elgatito closed 5 years ago

elgatito commented 5 years ago

This is a placeholder for tracking progress of migration to libtorrent engine.

So, releases for libtorrent are versioned with 0.1.x, while gotorrent is versioned 0.0.x.

What we have now:

victor333ua commented 5 years ago

все играло отлично, буфер держался вблизи максимума минут 15, скорость около 4 мб/с, затем буфер перестал заполняться, скорость скакнула до 8, но это не помогло, finished и все подключения в 0

пт, 8 февр. 2019 г., 10:08 Denis notifications@github.com:

@victor333ua https://github.com/victor333ua Я правильно понимаю по логу, сначала всё идёт хорошо, а потом затыки и вылет? Я нашел с этим ошибку, поправлю.

До того как начались глюки - затыки были? После старта проигрывания.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elgatito/plugin.video.elementum/issues/351#issuecomment-461722533, or mute the thread https://github.com/notifications/unsubscribe-auth/AerEvZbZ0d54pvg0LIDj48kSkLMPBvKUks5vLTBpgaJpZM4agC4E .

elgatito commented 5 years ago

@victor333ua Гуд. Вечером будет новая версия. А так судя по всему у вас нормально всё было, сначала на грани, докачивал, а потом докачал все куски и до начала глюков весь буффер был на 100% заполнен, т.е. наперёд всё было скачано (что есть хорошо), запас скорости похоже был двойной после прогрева.

rdscorreia74 commented 5 years ago

@john3voltas That is not good, actually. But I'm trying to fix crashing.

Lol, yea, but it means that bug fixing / development is cruising like blazing fast. Always good to know that devs keep the "drive" to keep developing such great software. Thanks man.

elgatito commented 5 years ago

https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.7 Version 0.1.7 is ready for testing!

victor333ua commented 5 years ago

пока все отлично, момент полного заполнения буфера успешно преодолен

пт, 8 февр. 2019 г., 22:54 Denis notifications@github.com:

https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.7 Version 0.1.7 is ready for testing!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elgatito/plugin.video.elementum/issues/351#issuecomment-461943467, or mute the thread https://github.com/notifications/unsubscribe-auth/AerEvbJ_kNNBe5BXorYsV77-4iRegvPnks5vLeP4gaJpZM4agC4E .

elgatito commented 5 years ago

Version 0.1.8 is available - https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.8

victor333ua commented 5 years ago

https://paste.kodi.tv/ehizinokif

elgatito commented 5 years ago

Куда смотреть?

victor333ua commented 5 years ago

начальный буфер нормально заполнился, а практически сразу после начала просмотра скорость стала падать до 0

вс, 10 февр. 2019 г., 10:51 Denis notifications@github.com:

Куда смотреть?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elgatito/plugin.video.elementum/issues/351#issuecomment-462114975, or mute the thread https://github.com/notifications/unsubscribe-auth/AerEvdrpwwwS-ILphq7bkRczWVZ5p0ydks5vL92kgaJpZM4agC4E .

elgatito commented 5 years ago

Да, нашел причину. Делаю фикс.

elgatito commented 5 years ago

https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.9 Fixed version is available!

elgatito commented 5 years ago

@antonsoroko Получится бинарник запустить на андроиде без настроек, чтоб повторить баг с невыставленным library path, и посмотреть от чего умирает он?

antonsoroko commented 5 years ago

@elgatito Сейчас на телефоне попробую и отпишусь

antonsoroko commented 5 years ago

kodi.log

Путь пустой кстати screenshot_20190210-182840

Я бы его тоже в temp кинул, а кто понимает, тот поменяет.

elgatito commented 5 years ago

Download специально пустой. Если его поставить и кто-то выберет фильм на 10 гиг, то прощай свободное место. Для памяти его не надо.

В логе бинарник валится. Узнать бы что в консоли пишет. Можно просто запускать в консоли при запущенном Коди, не обязательно в клиент режим переводить.

antonsoroko commented 5 years ago
$ pwd
/data/data/com.termux/files/home
$ uname -a
Linux localhost 3.18.120-perf-g783cd9f #1 SMP PREEMPT Mon Jan 14 16:08:26 WIB 2019 aarch64 Android
$ cp -r /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/resources/bin/android_arm64 .
$ ls
android_arm64
$ cd android_arm64/
$ chmod +x elementum
$ ls
elementum         libc++_shared.so
$ LD_LIBRARY_PATH=. ./elementum
INFO  main         ▶ main             Starting Elementum daemon
INFO  main         ▶ main             Version: 0.1.9 LibTorrent: 1.1.12.0 Go: go1.11.4, Threads: 8
INFO  config       ▶ Reload           Reloading configuration...
INFO  config       ▶ Reload           Setting remote address to 127.0.0.1:65221
NOTI  config       ▶ Reload           Paths translated by Kodi: Download = . , Library = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library , Torrents = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents , Storage = 1
INFO  config       ▶ Reload           Using download path: .
INFO  config       ▶ Reload           Using library path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library
INFO  config       ▶ Reload           Using torrents path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents
DEBU  config       ▶ Reload           Total system memory: 3.8 GB
DEBU  config       ▶ Reload           Automatically selected memory size: 188 MB
DEBU  config       ▶ Reload           Using configuration: &config.Configuration{
  DownloadPath: ".",
  TorrentsPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents",
  LibraryPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library",
  Info: &xbmc.AddonInfo{
    Author: "elgatito",
    Changelog: "",
    Description: "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.[CR]This project is a fork of the well known, but no longer maintained Pulsar/Quasar projects from steeve and scakemyer.",
    Disclaimer: "The author does not own or host any content found within this Addon. The author is not connected to or in any other way affiliated with Kodi, Team Kodi, or the XBMC Foundation.",
    Fanart: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/fanart.png",
    Home: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/",
    Icon: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/icon.png",
    ID: "plugin.video.elementum",
    Name: "Elementum",
    Path: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum",
    Profile: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/",
    TempPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum",
    Stars: "-1",
    Summary: "Elementum: Media streaming",
    Type: "xbmc.python.pluginsource",
    Version: "0.1.9",
    Xbmc: "/data/user/0/org.xbmc.kodi/cache/apk/assets/",
  },
  Platform: &xbmc.Platform{
    OS: "android",
    Arch: "arm64",
    Version: "3.18.120-perf-g783cd9f",
    Kodi: 18,
    Build: "18.0 Git:20190128-d81c34c",
  },
  Language: "en",
  TemporaryPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum",
  ProfilePath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/",
  HomePath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/",
  XbmcPath: "/data/user/0/org.xbmc.kodi/cache/apk/assets/",
  SpoofUserAgent: 0,
  KeepDownloading: 2,
  KeepFilesPlaying: 2,
  KeepFilesFinished: 2,
  UseFanartTv: true,
  DisableBgProgress: false,
  DisableBgProgressPlayback: true,
  ForceUseTrakt: false,
  UseCacheSelection: true,
  UseCacheSearch: true,
  CacheSearchDuration: 180,
  ResultsPerPage: 9,
  EnableOverlayStatus: true,
  SilentStreamStart: false,
  ChooseStreamAuto: false,
  ForceLinkType: false,
  UseOriginalTitle: false,
  AddSpecials: false,
  ShowUnairedSeasons: false,
  ShowUnairedEpisodes: false,
  SmartEpisodeMatch: true,
  LibraryUpdate: 0,
  StrmLanguage: "en",
  LibraryNFOMovies: true,
  LibraryNFOShows: true,
  PlaybackPercent: 85,
  DownloadStorage: 1,
  AutoMemorySize: true,
  AutoAdjustMemorySize: true,
  AutoMemorySizeStrategy: 1,
  MemorySize: 187591475,
  AutoAdjustBufferSize: true,
  BufferSize: 20971520,
  KodiBufferSize: 0,
  UploadRateLimit: 0,
  DownloadRateLimit: 0,
  AutoloadTorrents: true,
  LimitAfterBuffering: false,
  ConnectionsLimit: 0,
  ConnTrackerLimit: 0,
  ConnTrackerLimitAuto: true,
  SessionSave: 15,
  ShareRatioLimit: 25,
  SeedTimeRatioLimit: 200,
  SeedTimeLimit: 7200,
  DisableUpload: false,
  DisableDHT: false,
  DisableTCP: false,
  DisableUTP: false,
  DisableUPNP: false,
  EncryptionPolicy: 0,
  ListenPortMin: 6891,
  ListenPortMax: 6899,
  ListenInterfaces: "",
  ListenAutoDetectIP: true,
  ListenAutoDetectPort: true,
  OutgoingInterfaces: "",
  TunedStorage: false,
  Scrobble: false,
  TraktUsername: "",
  TraktToken: "",
  TraktRefreshToken: "",
  TraktTokenExpiry: 0,
  TraktSyncFrequency: 2,
  TraktSyncCollections: true,
  TraktSyncWatchlist: true,
  TraktSyncUserlists: true,
  TraktSyncWatched: true,
  TraktSyncWatchedBack: true,
  TraktSyncAddedMovies: true,
  TraktSyncAddedMoviesLocation: 0,
  TraktSyncAddedMoviesList: 0,
  TraktSyncAddedShows: true,
  TraktSyncAddedShowsLocation: 0,
  TraktSyncAddedShowsList: 0,
  TraktSyncRemovedMovies: true,
  TraktSyncRemovedMoviesLocation: 0,
  TraktSyncRemovedMoviesList: 0,
  TraktSyncRemovedShows: true,
  TraktSyncRemovedShowsLocation: 0,
  TraktSyncRemovedShowsList: 0,
  TraktProgressUnaired: true,
  TraktProgressSort: 0,
  TraktProgressDateFormat: "yyyy-mm-dd",
  TraktProgressColorDate: "yellow",
  TraktProgressColorShow: "none",
  TraktProgressColorEpisode: "skyblue",
  TraktProgressColorUnaired: "deeppink",
  TraktCalendarsDateFormat: "yyyy-mm-dd",
  TraktCalendarsColorDate: "yellow",
  TraktCalendarsColorShow: "none",
  TraktCalendarsColorEpisode: "skyblue",
  TraktCalendarsColorUnaired: "deeppink",
  UpdateFrequency: 6,
  UpdateDelay: 300,
  UpdateAutoScan: true,
  PlayResume: true,
  TMDBApiKey: "",
  OSDBUser: "",
  OSDBPass: "",
  OSDBLanguage: "en",
  OSDBAutoLanguage: true,
  SortingModeMovies: 2,
  SortingModeShows: 2,
  ResolutionPreferenceMovies: 0,
  ResolutionPreferenceShows: 0,
  PercentageAdditionalSeeders: 25,
  CustomProviderTimeoutEnabled: false,
  CustomProviderTimeout: 30,
  InternalDNSEnabled: true,
  InternalProxyEnabled: true,
  InternalProxyLogging: false,
  AntizapretEnabled: false,
  ProxyURL: "",
  ProxyType: 1,
  ProxyEnabled: false,
  ProxyHost: "",
  ProxyPort: 1080,
  ProxyLogin: "",
  ProxyPassword: "",
  ProxyUseHTTP: true,
  ProxyUseTracker: true,
  ProxyUseDownload: true,
  CompletedMove: false,
  CompletedMoviesPath: "",
  CompletedShowsPath: "",
  LocalOnlyClient: false,
}
INFO  main         ▶ main             Addon: plugin.video.elementum v0.1.9
DEBU  database     ▶ InitSqliteDB     Error migrating schema: unable to open database file
DEBU  database     ▶ RestoreBackup    Restoring backup
$
elgatito commented 5 years ago

@antonsoroko thanks! I will take a closer look in the database code.

elgatito commented 5 years ago

https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.10

Version 0.1.10 is available! More fixes to memory storage and settings to control buffer time.

elgatito commented 5 years ago

elementum.zip @antonsoroko Прошу попробовать запустить этот бинарник. Там добавлены сообщения отладки, может будет понятнее причина на андроиде.

antonsoroko commented 5 years ago

Странный бинарник При запуске

$ ./elementum
INFO  main         ▶ main             Starting Elementum daemon
INFO  main         ▶ main             Version: 0.1.10 LibTorrent: 1.1.12.0 Go: go1.11.4, Threads: 8
INFO  config       ▶ Reload           Reloading configuration...
INFO  config       ▶ Reload           Setting remote address to 127.0.0.1:65221
NOTI  config       ▶ Reload           Paths translated by Kodi: Download = . , Library = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library , Torrents = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents , Storage = 1
INFO  config       ▶ Reload           Using download path: .
INFO  config       ▶ Reload           Using library path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library
INFO  config       ▶ Reload           Using torrents path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents
WARN  config       ▶ func1            Addon settings not properly set, opening settings window: &runtime.TypeAssertionError{_interface:(*runtime._type)(0x60ade0e340), concrete:(*runtime._type)(nil), asserted:(*runtime._type)(0x60adddcbe0), missingMethod:""}

И

screenshot_20190210-232825

Если сделать как написано и бинарник оставить этот то вечный круг на релоаде настроек kodi.old.log

Если обратно вернуть бинарник 0.1.9 то норм все стартует kodi.log

elgatito commented 5 years ago

Версия 0.1.10 нужна в базе, там новые настройки есть.

antonsoroko commented 5 years ago

Вот с нуля тогда 10 а потом кастомный бинарь

Welcome to Termux!

Wiki:            https://wiki.termux.com
Community forum: https://termux.com/community
IRC channel:     #termux on freenode
Gitter chat:     https://gitter.im/termux/termux
Mailing list:    termux+subscribe@groups.io

Search packages:   pkg search <query>
Install a package: pkg install <package>
Upgrade packages:  pkg upgrade
Learn more:        pkg help
$ ls
elementum
$ cd
.bash_history  elementum/
$ cd elementum/
$ ls
elementum
$ ./elementum
INFO  main         ▶ main             Starting Elementum daemon
INFO  main         ▶ main             Version: 0.1.10 LibTorrent: 1.1.12.0 Go: go1.11.4, Threads: 8
INFO  config       ▶ Reload           Reloading configuration...
INFO  config       ▶ Reload           Setting remote address to 127.0.0.1:65221
NOTI  config       ▶ Reload           Paths translated by Kodi: Download = . , Library = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library , Torrents = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents , Storage = 1
INFO  config       ▶ Reload           Using download path: .
INFO  config       ▶ Reload           Using library path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library
INFO  config       ▶ Reload           Using torrents path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents
DEBU  config       ▶ Reload           Total system memory: 3.8 GB
DEBU  config       ▶ Reload           Automatically selected memory size: 188 MB
DEBU  config       ▶ Reload           Using configuration: &config.Configuration{
  DownloadPath: ".",
  TorrentsPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents",
  LibraryPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library",
  Info: &xbmc.AddonInfo{
    Author: "elgatito",
    Changelog: "",
    Description: "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.[CR]This project is a fork of the well known, but no longer maintained Pulsar/Quasar projects from steeve and scakemyer.",
    Disclaimer: "The author does not own or host any content found within this Addon. The author is not connected to or in any other way affiliated with Kodi, Team Kodi, or the XBMC Foundation.",
    Fanart: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/fanart.png",
    Home: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/",
    Icon: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/icon.png",
    ID: "plugin.video.elementum",
    Name: "Elementum",
    Path: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum",
    Profile: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/",
    TempPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum",
    Stars: "-1",
    Summary: "Elementum: Media streaming",
    Type: "xbmc.python.pluginsource",
    Version: "0.1.10",
    Xbmc: "/data/user/0/org.xbmc.kodi/cache/apk/assets/",
  },
  Platform: &xbmc.Platform{
    OS: "android",
    Arch: "arm64",
    Version: "3.18.120-perf-g783cd9f",
    Kodi: 18,
    Build: "18.0 Git:20190128-d81c34c",
  },
  Language: "en",
  TemporaryPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum",
  ProfilePath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/",
  HomePath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/",
  XbmcPath: "/data/user/0/org.xbmc.kodi/cache/apk/assets/",
  SpoofUserAgent: 0,
  KeepDownloading: 2,
  KeepFilesPlaying: 2,
  KeepFilesFinished: 2,
  UseFanartTv: true,
  DisableBgProgress: false,
  DisableBgProgressPlayback: true,
  ForceUseTrakt: false,
  UseCacheSelection: true,
  UseCacheSearch: true,
  CacheSearchDuration: 180,
  ResultsPerPage: 9,
  EnableOverlayStatus: true,
  SilentStreamStart: false,
  ChooseStreamAuto: false,
  ForceLinkType: false,
  UseOriginalTitle: false,
  AddSpecials: false,
  ShowUnairedSeasons: false,
  ShowUnairedEpisodes: false,
  SmartEpisodeMatch: true,
  LibraryUpdate: 0,
  StrmLanguage: "en",
  LibraryNFOMovies: true,
  LibraryNFOShows: true,
  PlaybackPercent: 85,
  DownloadStorage: 1,
  AutoMemorySize: true,
  AutoAdjustMemorySize: true,
  AutoMemorySizeStrategy: 1,
  MemorySize: 187591475,
  AutoAdjustBufferSize: true,
  MinCandidateSize: 104857600,
  BufferTimeout: 60,
  BufferSize: 20971520,
  KodiBufferSize: 0,
  UploadRateLimit: 0,
  DownloadRateLimit: 0,
  AutoloadTorrents: true,
  LimitAfterBuffering: false,
  ConnectionsLimit: 0,
  ConnTrackerLimit: 0,
  ConnTrackerLimitAuto: true,
  SessionSave: 15,
  ShareRatioLimit: 25,
  SeedTimeRatioLimit: 200,
  SeedTimeLimit: 7200,
  DisableUpload: false,
  DisableDHT: false,
  DisableTCP: false,
  DisableUTP: false,
  DisableUPNP: false,
  EncryptionPolicy: 0,
  ListenPortMin: 6891,
  ListenPortMax: 6899,
  ListenInterfaces: "",
  ListenAutoDetectIP: true,
  ListenAutoDetectPort: true,
  OutgoingInterfaces: "",
  TunedStorage: false,
  Scrobble: false,
  TraktUsername: "",
  TraktToken: "",
  TraktRefreshToken: "",
  TraktTokenExpiry: 0,
  TraktSyncFrequency: 2,
  TraktSyncCollections: true,
  TraktSyncWatchlist: true,
  TraktSyncUserlists: true,
  TraktSyncWatched: true,
  TraktSyncWatchedBack: true,
  TraktSyncAddedMovies: true,
  TraktSyncAddedMoviesLocation: 0,
  TraktSyncAddedMoviesList: 0,
  TraktSyncAddedShows: true,
  TraktSyncAddedShowsLocation: 0,
  TraktSyncAddedShowsList: 0,
  TraktSyncRemovedMovies: true,
  TraktSyncRemovedMoviesLocation: 0,
  TraktSyncRemovedMoviesList: 0,
  TraktSyncRemovedShows: true,
  TraktSyncRemovedShowsLocation: 0,
  TraktSyncRemovedShowsList: 0,
  TraktProgressUnaired: true,
  TraktProgressSort: 0,
  TraktProgressDateFormat: "yyyy-mm-dd",
  TraktProgressColorDate: "yellow",
  TraktProgressColorShow: "none",
  TraktProgressColorEpisode: "skyblue",
  TraktProgressColorUnaired: "deeppink",
  TraktCalendarsDateFormat: "yyyy-mm-dd",
  TraktCalendarsColorDate: "yellow",
  TraktCalendarsColorShow: "none",
  TraktCalendarsColorEpisode: "skyblue",
  TraktCalendarsColorUnaired: "deeppink",
  UpdateFrequency: 6,
  UpdateDelay: 300,
  UpdateAutoScan: true,
  PlayResume: true,
  TMDBApiKey: "",
  OSDBUser: "",
  OSDBPass: "",
  OSDBLanguage: "en",
  OSDBAutoLanguage: true,
  SortingModeMovies: 2,
  SortingModeShows: 2,
  ResolutionPreferenceMovies: 0,
  ResolutionPreferenceShows: 0,
  PercentageAdditionalSeeders: 25,
  CustomProviderTimeoutEnabled: false,
  CustomProviderTimeout: 30,
  InternalDNSEnabled: true,
  InternalProxyEnabled: true,
  InternalProxyLogging: false,
  AntizapretEnabled: false,
  ProxyURL: "",
  ProxyType: 1,
  ProxyEnabled: false,
  ProxyHost: "",
  ProxyPort: 1080,
  ProxyLogin: "",
  ProxyPassword: "",
  ProxyUseHTTP: true,
  ProxyUseTracker: true,
  ProxyUseDownload: true,
  CompletedMove: false,
  CompletedMoviesPath: "",
  CompletedShowsPath: "",
  LocalOnlyClient: false,
}
INFO  main         ▶ main             Addon: plugin.video.elementum v0.1.10
ERRO  database     ▶ InitSqliteDB     Error migrating schema: unable to open database file
ERRO  database     ▶ func1            Got critical error while creating Bolt: runtime error: invalid memory address or nil pointer dereference
WARN  database     ▶ RestoreBackup    Restoring backup from '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/cache-backup.db' to '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/cache.db'
$
burekas7 commented 5 years ago

Wow! Great improvment! Finally a stable and good speed rates as it should be, similar as Quasar have. (Tested with "Use Files" mode) Thank you, I'm very appriciate that you made this change. @elgatito

Here is my log if you want to take a look: https://paste.ubuntu.com/p/YnqgyTZmd7 (Why I don't see also the percentage progress in the log as you did in the past?)

I have disabled the DHT, I don't know if it relates but just to mention. By the way, what DHT is used for? Does it could to improve the speed? What does it mean?

Elementum 0.1.10 Kodi 17.6 Windows 10, 64bit

elgatito commented 5 years ago

Version 0.1.11 is ready for testing - https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.11

Again changes to memory storage to better control it.

@antonsoroko can you try the issue with missing library path with 0.1.11?

victor333ua commented 5 years ago

it's about library path or download path? I changed download path in settings.xml and it doesn't affect anything. I can't start daemon via telnet in my xiaomi mi box 3 international without root possibility. Any advise?

пн, 11 февр. 2019 г., 22:20 Denis notifications@github.com:

Version 0.1.11 is ready for testing - https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.11

Again changes to memory storage to better control it.

@antonsoroko https://github.com/antonsoroko can you try the issue with missing library path with 0.1.11?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elgatito/plugin.video.elementum/issues/351#issuecomment-462479342, or mute the thread https://github.com/notifications/unsubscribe-auth/AerEvVGuEriVwXRL6jb5_chnCRmbJpf0ks5vMdCPgaJpZM4agC4E .

antonsoroko commented 5 years ago

@elgatito креша нету, но пишет что елементум ещё стартует если попытаться открыть (чистый инстал с нуля) в addon_data папки плагина нету

$ cp -r /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/resources/bin/android_arm64 .
$ cd android_arm64/
$ ls
elementum         libc++_shared.so
$ chmod +x elementum
$ LD_LIBRARY_PATH=. ./elementum
INFO  main         ▶ main             Starting Elementum daemon
INFO  main         ▶ main             Version: 0.1.11 LibTorrent: 1.1.12.0 Go: go1.11.4, Threads: 8
INFO  config       ▶ Reload           Reloading configuration...
INFO  config       ▶ Reload           Setting remote address to 127.0.0.1:65221
NOTI  config       ▶ Reload           Paths translated by Kodi: Download = . , Library = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library , Torrents = /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents , Storage = 1
INFO  config       ▶ Reload           Using download path: .
INFO  config       ▶ Reload           Using library path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library
INFO  config       ▶ Reload           Using torrents path: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents
DEBU  config       ▶ Reload           Total system memory: 3.8 GB
DEBU  config       ▶ Reload           Automatically selected memory size: 188 MB
DEBU  config       ▶ Reload           Using configuration: &config.Configuration{
  DownloadPath: ".",
  TorrentsPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_torrents",
  LibraryPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum_library",
  Info: &xbmc.AddonInfo{
    Author: "elgatito",
    Changelog: "",
    Description: "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.[CR]This project is a fork of the well known, but no longer maintained Pulsar/Quasar projects from steeve and scakemyer.",
    Disclaimer: "The author does not own or host any content found within this Addon. The author is not connected to or in any other way affiliated with Kodi, Team Kodi, or the XBMC Foundation.",
    Fanart: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/fanart.png",
    Home: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/",
    Icon: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum/icon.png",
    ID: "plugin.video.elementum",
    Name: "Elementum",
    Path: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.elementum",
    Profile: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/",
    TempPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum",
    Stars: "-1",
    Summary: "Elementum: Media streaming",
    Type: "xbmc.python.pluginsource",
    Version: "0.1.11",
    Xbmc: "/data/user/0/org.xbmc.kodi/cache/apk/assets/",
  },
  Platform: &xbmc.Platform{
    OS: "android",
    Arch: "arm64",
    Version: "3.18.120-perf-g783cd9f",
    Kodi: 18,
    Build: "18.0 Git:20190128-d81c34c",
  },
  Language: "en",
  TemporaryPath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/elementum",
  ProfilePath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/",
  HomePath: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/",
  XbmcPath: "/data/user/0/org.xbmc.kodi/cache/apk/assets/",
  SpoofUserAgent: 0,
  KeepDownloading: 2,
  KeepFilesPlaying: 2,
  KeepFilesFinished: 2,
  UseFanartTv: true,
  DisableBgProgress: false,
  DisableBgProgressPlayback: true,
  ForceUseTrakt: false,
  UseCacheSelection: true,
  UseCacheSearch: true,
  CacheSearchDuration: 180,
  ResultsPerPage: 9,
  EnableOverlayStatus: true,
  SilentStreamStart: false,
  ChooseStreamAuto: false,
  ForceLinkType: false,
  UseOriginalTitle: false,
  AddSpecials: false,
  ShowUnairedSeasons: false,
  ShowUnairedEpisodes: false,
  SmartEpisodeMatch: true,
  LibraryUpdate: 0,
  StrmLanguage: "en",
  LibraryNFOMovies: true,
  LibraryNFOShows: true,
  PlaybackPercent: 85,
  DownloadStorage: 1,
  AutoMemorySize: true,
  AutoKodiBufferSize: true,
  AutoAdjustMemorySize: true,
  AutoMemorySizeStrategy: 1,
  MemorySize: 187591475,
  AutoAdjustBufferSize: true,
  MinCandidateSize: 104857600,
  BufferTimeout: 60,
  BufferSize: 20971520,
  KodiBufferSize: 0,
  UploadRateLimit: 0,
  DownloadRateLimit: 0,
  AutoloadTorrents: true,
  LimitAfterBuffering: false,
  ConnectionsLimit: 0,
  ConnTrackerLimit: 0,
  ConnTrackerLimitAuto: true,
  SessionSave: 15,
  ShareRatioLimit: 25,
  SeedTimeRatioLimit: 200,
  SeedTimeLimit: 7200,
  DisableUpload: false,
  DisableDHT: false,
  DisableTCP: false,
  DisableUTP: false,
  DisableUPNP: false,
  EncryptionPolicy: 0,
  ListenPortMin: 6891,
  ListenPortMax: 6899,
  ListenInterfaces: "",
  ListenAutoDetectIP: true,
  ListenAutoDetectPort: true,
  OutgoingInterfaces: "",
  TunedStorage: false,
  Scrobble: false,
  TraktUsername: "",
  TraktToken: "",
  TraktRefreshToken: "",
  TraktTokenExpiry: 0,
  TraktSyncFrequency: 2,
  TraktSyncCollections: true,
  TraktSyncWatchlist: true,
  TraktSyncUserlists: true,
  TraktSyncWatched: true,
  TraktSyncWatchedBack: true,
  TraktSyncAddedMovies: true,
  TraktSyncAddedMoviesLocation: 0,
  TraktSyncAddedMoviesList: 0,
  TraktSyncAddedShows: true,
  TraktSyncAddedShowsLocation: 0,
  TraktSyncAddedShowsList: 0,
  TraktSyncRemovedMovies: true,
  TraktSyncRemovedMoviesLocation: 0,
  TraktSyncRemovedMoviesList: 0,
  TraktSyncRemovedShows: true,
  TraktSyncRemovedShowsLocation: 0,
  TraktSyncRemovedShowsList: 0,
  TraktProgressUnaired: true,
  TraktProgressSort: 0,
  TraktProgressDateFormat: "yyyy-mm-dd",
  TraktProgressColorDate: "yellow",
  TraktProgressColorShow: "none",
  TraktProgressColorEpisode: "skyblue",
  TraktProgressColorUnaired: "deeppink",
  TraktCalendarsDateFormat: "yyyy-mm-dd",
  TraktCalendarsColorDate: "yellow",
  TraktCalendarsColorShow: "none",
  TraktCalendarsColorEpisode: "skyblue",
  TraktCalendarsColorUnaired: "deeppink",
  UpdateFrequency: 6,
  UpdateDelay: 300,
  UpdateAutoScan: true,
  PlayResume: true,
  TMDBApiKey: "",
  OSDBUser: "",
  OSDBPass: "",
  OSDBLanguage: "en",
  OSDBAutoLanguage: true,
  SortingModeMovies: 2,
  SortingModeShows: 2,
  ResolutionPreferenceMovies: 0,
  ResolutionPreferenceShows: 0,
  PercentageAdditionalSeeders: 25,
  CustomProviderTimeoutEnabled: false,
  CustomProviderTimeout: 30,
  InternalDNSEnabled: true,
  InternalProxyEnabled: true,
  InternalProxyLogging: false,
  AntizapretEnabled: false,
  ProxyURL: "",
  ProxyType: 1,
  ProxyEnabled: false,
  ProxyHost: "",
  ProxyPort: 1080,
  ProxyLogin: "",
  ProxyPassword: "",
  ProxyUseHTTP: true,
  ProxyUseTracker: true,
  ProxyUseDownload: true,
  CompletedMove: false,
  CompletedMoviesPath: "",
  CompletedShowsPath: "",
  LocalOnlyClient: false,
}
INFO  main         ▶ main             Addon: plugin.video.elementum v0.1.11
ERRO  database     ▶ InitSqliteDB     Error migrating schema: unable to open database file
WARN  database     ▶ CreateBoltDB     Could not open database at /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/cache.db: &os.PathError{Op:"open", Path:"/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/cache.db", Err:0x2}
ERRO  main         ▶ main             database not created
$ ls -la /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/cache.db
ls: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/cache.db: No such file or directory
$ ls -la /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/
ls: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/: No such file or directory
$ ls -la /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/        total 16
drwxrwx---    4 u0_a170  everybod      4096 Feb 10 23:46 .
drwxrwx---   10 u0_a170  everybod      4096 Feb 10 18:23 ..
drwxrwx---    3 u0_a170  everybod      4096 Feb 10 18:23 peripheral.joystick
drwxrwx---    2 u0_a170  everybod      4096 Feb 10 18:23 skin.estuary
$
antonsoroko commented 5 years ago

@victor333ua i have the same box (also without root) this instruction works for sure https://github.com/elgatito/plugin.video.elementum/issues/351#issuecomment-461059957

elgatito commented 5 years ago

it's about library path or download path?

It's all about not possible to start plugin on Android, when library path is not set.

elgatito commented 5 years ago

@antonsoroko this s interesting:

ls: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.elementum/: No such file or directory

How can it be there is no directory for plugin if it's installed? You have not deleted it, right? Where is settings.xml for this plugin then?! Can you try to find settings.xml files on device, while Kodi is running, or plugin.video.elementum directories. Maybe they hide it somewhere in newer androids.

Nemiroff commented 5 years ago

На андроиде по умолчанию не создается папка c названием плагина в userdata, до тех пор пока не зайдешь и не сохранишь настройки.

elgatito commented 5 years ago

@Nemiroff @antonsoroko ok. сделаем их работу сами.

elgatito commented 5 years ago

@antonsoroko can you try version 0.1.12?

antonsoroko commented 5 years ago

Вроде поставилось и запустилось но после автоматической установки burst коди завис kodi.log

antonsoroko commented 5 years ago

Попытка номер 2 - тоже самое, коди виснет после автоматической установки burst

kodi.log

riegaz commented 5 years ago

Nice to see the movement here! Just a quick question. Does anyone else sees the content stop playing and going back to main menu when the download speed is not suficient? I'm on arm-7.

elgatito commented 5 years ago

Does anyone else sees the content stop playing and going back to main menu when the download speed is not suficient?

Seeing log would help to see the problem. Memory storage is not stable yet, sadly.

elgatito commented 5 years ago

@antonsoroko В логе всё хорошо, ничего нету вообще странного. Может нужно настройки Elementum сохранить до установки Burst?

antonsoroko commented 5 years ago

Так оно автоматически ставит же, т.е. ты только поставил elementum и сразу же предлагает burst. Может быть это специфично для 18.1, я просто на бета канал подписан.

elgatito commented 5 years ago

Так оно автоматически ставит же, т.е. ты только поставил elementum и сразу же предлагает burst.

Да, предлагает после удачного запуска самого elementum. Установкой занимается сам Kodi.

antonsoroko commented 5 years ago

Ну короче проблема есть, в идеале чтобы кто-то проверил на 17.6 или 18.0 Ну или я сам как-нибудь смогу.

elgatito commented 5 years ago

Version 0.1.13 is ready to testing - https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.13

xdeee commented 5 years ago

Finally I've got flawless playback. Все эти месяцы я терпеливо страдал и верил в вас. Денис, спасибо вам огромное! Теперь заживём!

Android tv, mi box, kodi 18. Накатил поверх. Посмотрел две серии - ни одного затыка. Перемотка, ФПС, скорость - все пришло в норму. Поздравляю с переездом!

elgatito commented 5 years ago

Version 0.1.14 is ready to testing - https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.14

There are changes in libtorrent settings for memory storage. Limits raised a log, please, give your feedback.

victor333ua commented 5 years ago

у меня прекрасно работала 7 версия, сейчас 9, ни одной проблемы. На что обращать внимание в 14?

пт, 15 февр. 2019 г., 22:45 Denis notifications@github.com:

Version 0.1.14 is ready to testing - https://github.com/elgatito/plugin.video.elementum/releases/tag/v0.1.14

There are changes in libtorrent settings for memory storage. Limits raised a log, please, give your feedback.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elgatito/plugin.video.elementum/issues/351#issuecomment-464192885, or mute the thread https://github.com/notifications/unsubscribe-auth/AerEvbWvpc6pMbTQ4Vl5nBBFJc0JVBaJks5vNxxpgaJpZM4agC4E .

antonsoroko commented 5 years ago

Обновил 14 на приставку (mi box 3, Android TV 8, arm), Kodi 18.1 При попытке начать скачивание долго думает и на памяти и на диск. Если подождать - приставка виснет намертво https://paste.kodi.tv/wadozanice

Update: с стандартный объем памяти запустилось, лог выше с максимум. В приставке 2 гига.

antonsoroko commented 5 years ago

При запуске почему-то начинает перепроверять торенты (файловое хранилище стоит, естественно)

http://paste.kodi.tv/uruwubasax

antonsoroko commented 5 years ago

И невозможно открыть уже скачанный торрент оказывается https://paste.kodi.tv/cibahokuwo

img_20190217_010405

antonsoroko commented 5 years ago

При открытии торрента который сейчас качается (например после кнопки стоп) - даёт окно скачивания, пишет 100%, текущую скорость, но не открывает в итоге.

Плюс часто приставка просто зависает намертво.

Ну и в оверлее при скачивании пишет finished почему-то.

Это все про файловое, но зависание было и на памяти.

Лог https://turl.ca/qqujzm

hegi25 commented 5 years ago

Just tried the new version of elementum after upgrading. Really nice work @elgatito ! After installed the new version all my previous torrent successfully verifyed, and started seeding.

The download speed is very impressive. Got 45MB/s with my Beeling GT1 Mini with Android TV 8.

Everything is worked except one thing, when i try to watch an episode from a season pack which is bigger than my storage capacity, its says there is not enought space, even if i want to download only one episode at once. With the previous torrent backend its worked.

Thank you very much for your work, and keep up the good working! :)

elgatito commented 5 years ago

Please, try version 0.1.15!

Much advised to leave automatic memory adjustment on, automatic buffer adjustment on.