elgatito / plugin.video.elementum

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

can't show the whole files if torrent cantains hundreds of files #1086

Open i990049 opened 1 week ago

i990049 commented 1 week ago

elementum0.1.106 only show two m2ts files on my kodi of Android TV BOX. test.zip$ It will be convenient if there is file name search filter when open a magnet link or torrent.

antonsoroko commented 1 week ago

@i990049 1. about

only show two m2ts files on my kodi of Android TV BOX.

that's because this MEGA torrent has not only regular video files (mkv, mp4, avi), but it also has 2 Bluray's folders (path has BDMV/STREAM). so elementum treat this torrent as special bluray torrent. so you see only bluray things.

warning <general>: [plugin.video.elementum] INFO  bittorrent   ▶ GetCandidateFiles  Found Blu-Ray: 动画片/[冰雪奇缘].Frozen.2013.Blu-ray.x264.DTS.4Audios.MiniBD1080P-CMCT/BDMV/STREAM/00000.m2ts
warning <general>: [plugin.video.elementum] INFO  bittorrent   ▶ GetCandidateFiles  Found Blu-Ray: 动画片/[神偷奶爸3]Despicable.Me.3.2017.BluRay.REMUX.1080p.AVC.DTS-HD.MA7.1-HDS/BDMV/STREAM/00000.m2ts

if torrent has hundreds regular video files (mkv, mp4, avi) - then they will be shown without any issue.

i am not sure that @elgatito will agree to add some hack to this logic to show mix of regular files (mkv, mp4) and bluray files. i also not sure that this is useful. this is the first time i see such torrent.

responsible code https://github.com/elgatito/elementum/blob/638d5c307b53763e752a698252ecb03de06e085a/bittorrent/torrent.go#L1792

2. about

It will be convenient if there is file name search filter when open a magnet link or torrent.

since usually torrent has not so many files, i do not know if this is really useful. and again - elementum's users usually use catalog/library - so file name is usually automatically chosen (like particular episode is chosen from whole season).

anyway, someone who is good in developing kodi windows/dialogs should design such custom window/dialog. so i would say - unless you will implement this feature yourself - i would not expect this feature.