It is currently December 1st, 2023, 5:42 am
LuaTorrent3
-
- Posts: 76
- Joined: June 8th, 2015, 10:39 pm
Re: LuaTorrent3
Is there a way to change the order of torrents displayed. Like downloading at top, then seeding, then finished? Before i updated my utorrent it displayed alphabetical. Now it doesnt seem to have any order to it at all.
-
- Posts: 9
- Joined: April 22nd, 2016, 2:40 am
Re: LuaTorrent3
Is there a way to add 3 more torrents to the list, so it will display 8 torrents in total?
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTorrent3
I'm not planning to revisit that skin, but in a general sense you just need to add more meters, using the pattern that is there now, and in the .lua you need to change any places where it is looking for up to 5 torrents and change that to 8 instead.Saki wrote:Is there a way to add 3 more torrents to the list, so it will display 8 torrents in total?
So these spots I think:
iItemCount = (iItemCount < 6) and iItemCount or 5
if iItemCount < 5 then
for i = iItemCount + 1, 5 do
SKIN:Bang("!HideMeterGroup Torrent"..i)
end
for i = 1, 5 do
SKIN:Bang("!HideMeterGroup Torrent"..i)
end
-
- Posts: 9
- Joined: April 22nd, 2016, 2:40 am
Re: LuaTorrent3
Yes that worked! Thank you, just another quick question (sorry for all those questions on DA) how do I add decimal points to the Size and DL speed and how do you get rid of the percentage next to the status? Like the way you made it in your qBIT skin?jsmorley wrote:I'm not planning to revisit that skin, but in a general sense you just need to add more meters, using the pattern that is there now, and in the .lua you need to change any places where it is looking for up to 5 torrents and change that to 8 instead.
So these spots I think:
iItemCount = (iItemCount < 6) and iItemCount or 5
if iItemCount < 5 then
for i = iItemCount + 1, 5 do
SKIN:Bang("!HideMeterGroup Torrent"..i)
end
for i = 1, 5 do
SKIN:Bang("!HideMeterGroup Torrent"..i)
end
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTorrent3
I think I answered the first one here:Saki wrote:Yes that worked! Thank you, just another quick question (sorry for all those questions on DA) how do I add decimal points to the Size and DL speed and how do you get rid of the percentage next to the status? Like the way you made it in your qBIT skin?
https://forum.rainmeter.net/viewtopic.php?p=122597#p122597
As to the percentage, that is still there in the qBT skin. If you want to remove them, just comment out or remove the meters. Be careful of positioning in both cases, as a lot of the meters in the skin are carefully sized to fit the existing data I'm returning, and may well be "relative" to each other.
-
- Posts: 9
- Joined: April 22nd, 2016, 2:40 am
Re: LuaTorrent3
I'm sorry, I mean't this little bit - http://prntscr.com/aw1n52jsmorley wrote:As to the percentage, that is still there in the qBT skin. If you want to remove them, just comment out or remove the meters. Be careful of positioning in both cases, as a lot of the meters in the skin are carefully sized to fit the existing data I'm returning, and may well be "relative" to each other.
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTorrent3
Hm.. After this line in the .lua:Saki wrote:I'm sorry, I mean't this little bit - http://prntscr.com/aw1n52
tTEXTSTATUS = string.gsub(tTEXTSTATUS, "Downloading", "Download")
You might try adding:
tTEXTSTATUS = string.gsub(tTEXTSTATUS, "Paused.+", "Paused")
-
- Posts: 9
- Joined: April 22nd, 2016, 2:40 am
Re: LuaTorrent3
jsmorley wrote:Hm.. After this line in the .lua:
tTEXTSTATUS = string.gsub(tTEXTSTATUS, "Downloading", "Download")
You might try adding:
tTEXTSTATUS = string.gsub(tTEXTSTATUS, "Paused.+", "Paused")
That worked for the Paused status, but I added the ".+" for the "Downloading" and it worked!
Okay..so one LAST question (I SWEAR IT'S MY LAST)
This is pretty much what my version of your skin looks like - http://prntscr.com/aw1qq9
Do you see how the "Names" for the torrents gets cut off a bit too early? How would I manipulate where the cut off point for the (...) is?
This is literally my last question <3
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTorrent3
Just increase the W option on the meters in the skin .ini that are for the name of the torrent.Saki wrote:That worked for the Paused status, but I added the ".+" for the "Downloading" and it worked!
Okay..so one LAST question (I SWEAR IT'S MY LAST)
This is pretty much what my version of your skin looks like - http://prntscr.com/aw1qq9
Do you see how the "Names" for the torrents gets cut off a bit too early? How would I manipulate where the cut off point for the (...) is?
This is literally my last question <3
-
- Posts: 9
- Joined: April 22nd, 2016, 2:40 am
Re: LuaTorrent3
Got it! And I can't find a way to make the percentage for "Seeding" go away, I can't find it in the .lua file, only the "Downloading" and "Paused" parts of the script.jsmorley wrote:Just increase the W option on the meters in the skin .ini that are for the name of the torrent.