Author Topic: a Little Bug in the Script engine  (Read 17986 times)

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
a Little Bug in the Script engine
« on: October 05, 2014, 06:46:55 am »
3.0 build 12

When T=
Code: [Select]
<span>10.25 Mb, <a href="/mp3/Astral_Projection/" title="Search Artist: Astral Projection">Astral Projection<!--EOL-->

And I run
Code: [Select]
s=extract(2,t,`>`,`,`)
s=1
if I try

Code: [Select]
$size=extract(2,t,`>`,`,`)
size=9

Bit Che doesn't seem to like searching for commas




I also noticed whilst playing that BitChe doesn't use the standard temp directory and it renames the files it is downloading
Do we really need another temp directory to find an clean especially one that may be as incriminating as this one potentially could be.


I admit the renaming wouldn't normally be a problem but I was playing and ended up with a file called "temp_7646855.torrent" that BitChe tried to open in utorrent that didn't have a clue what to do with the file as it should have been called "Syb Groeneveld - Creative Commons Mp3" and opened with VLC.

@chip If you want to test the script I have attached it WARNING don't use the view torrent BitChe doesn't like it.
« Last Edit: October 17, 2014, 08:51:16 pm by Bovski »

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: a Little Bug in the Script engine
« Reply #1 on: October 25, 2014, 11:24:21 am »
thanks Bovski.. looking into it :)

EDIT:; whoooaa.. yeah, Torrent Details does not like trying to load huge mp3 files :)...  will try to find a 2ndary fix for that after the comma issue..
« Last Edit: October 25, 2014, 11:37:40 am by chip! »
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: a Little Bug in the Script engine
« Reply #2 on: October 25, 2014, 12:04:15 pm »
ok fixed the comma bug... now trying to decide what to do with the GUI when the engine is told to view or download something other than .torrent

edit:  also, BC temp dir is automatically cleared when restarting BC.   I will look into using standard windows temp dir.. off the top of my head, i think it uses its own to be compatible as a 'portable app'.  so i suppose that needs to be looked at as well.

probably need to rename this thread to  'little bug and couple major design issues'  :)
« Last Edit: October 25, 2014, 12:21:49 pm by chip! »
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
Re: a Little Bug in the Script engine
« Reply #3 on: October 26, 2014, 05:28:42 am »
LOL no Only the the bug.

The other stuff was just a bit of fun to see what could be done with the engine.
It just seems such a shame the engine is limited to torrents.


Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: a Little Bug in the Script engine
« Reply #4 on: October 26, 2014, 01:24:09 pm »
LOL no Only the the bug.

The other stuff was just a bit of fun to see what could be done with the engine.
It just seems such a shame the engine is limited to torrents.

i came up with a creative solution for other file types.. need to clean it up, but will post a beta build in next week or so.
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: a Little Bug in the Script engine
« Reply #5 on: November 09, 2014, 11:21:09 am »
ok.. here is the version that can now better handle fun scripts :)  (View Torrent Details no longer crashes, etc).

http://convivea.com/forums/index.php/topic,2415.msg21003.html#msg21003

let me know if you see any major issues?   

note, the files are still saved in BC's temp dir (which is cleared on every restart of BC)...  it would take some bigger changes to how .torrents are handled by BC overall to move that directory.. and im not sure its worth it.
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
Re: a Little Bug in the Script engine
« Reply #6 on: November 13, 2014, 09:55:39 am »
Cool works a treat.

The Update details doesn't show the correct script that's being updated before or after.


Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: a Little Bug in the Script engine
« Reply #7 on: February 21, 2015, 03:23:40 am »
Cool works a treat.

The Update details doesn't show the correct script that's being updated before or after.

i finally found and fixed a couple bugs in the Update Details for a script pack update. Thanks for reporting this a while ago Bovski :)
  -  https://convivea.com  -   And...  boom goes the dynamite.