Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue not go ahead #2

Open
shark2380 opened this issue Mar 9, 2016 · 11 comments
Open

Queue not go ahead #2

shark2380 opened this issue Mar 9, 2016 · 11 comments

Comments

@shark2380
Copy link

Ciao, hi,
i'm using your scripts xdcc.pl ( the latest abailable here) with irssi version 0.8.17.
When i add some packs to queue i receive a error ( Use of uninitialized value in concatenation (.) or string at .irssi/scripts/autorun/xdccget.pl line 39.
but the download start.
when the first finish the second don't start automatically until i Cancel the first pack.
Thanks for a reply.

@obfuscoder
Copy link
Owner

I guess you are not correctly adding the files to the queue. Maybe you forgot to mention the name of the file? Although the documentation states that the filename/description is optional, it is not. I should probably update the help information.

/x queue <botname> <number> <filename>

@shark2380
Copy link
Author

i also think so...., i will try and keep you updated. Thanks

@shark2380
Copy link
Author

Just for update, i add the filename and the error go away, but still the queue stopped after the first one finish.

@shark2380
Copy link
Author

if you ask for queue situation with " /x " the first row still have requested all the time.

@obfuscoder
Copy link
Owner

Ok, this might be that the bot you are requesting the file from, has some weird notification output which the script is yet unable to parse properly. Can you provide me with the Ircnet and Botname you are downloading from? This would allow me to try and reproduce the issue.

@shark2380
Copy link
Author

Thanks for help me in the issue, The IRCnet is : irc.openjoke.net and the BOT name : ARES|STV-ITA|01
But also ohter under the same ircnet.
Not yet tried on other IRCnet

@obfuscoder
Copy link
Owner

Hmm, I'm unable to connect to the IRC server. Apparently I'm not welcome there. Probably there is an IP lock or I need specific user name. In this case I would like to ask you to create a irssi log by using the following settings:

[log]
autolog = ON
autolog_colors = ON
autolog_level = all
autolog_path = ~/path/to/your/logfile.log

Please enable the logging, then restart the irssi client and add the smallest possible file to the queue.

Please be aware that there might be sensitive information in the log file. If the server or channels require authentication, search for it in the log file and replace sensitive information with ******. Keep your communication at a bare minimum. Don't join unnecessary channels. Exit irssi right after the behavior could be reproduced. Review the log file before making it available to me (and thus others).

@shark2380
Copy link
Author

Here enclosed the logfile. hope this help you. i didn't find anything related to download....

@obfuscoder
Copy link
Owner

Sorry, I thought the log would capture the notices and privmsgs. I researched a little and rawlog is what we need. Please:

  • /set rawlog_lines 10000
  • restart irssi
  • Let the download start
  • /rawlog save /path/to/logfile.log

The rawlog file contains all we need. Again, check for and remove sensitive information before providing the file.

@shark2380
Copy link
Author

here the rawfile
rawlogfile

@obfuscoder
Copy link
Owner

Ok that helps. I can see that the bots are sending localized (Italian) private messages. The script is written to understand the "standard" English phrases of the typical XDCC offer bots. Based on the log snippet I might be able to devise a version where the transferring state is being recognized. I can do this even by detecting the PRIVMSG for initiating the DCC SEND which is not localized.

However, there are most likely also localized versions of the other messages the bot sends (like queue notifications) which I am unable to implement unless I know those phrases.

You can help by providing me with the phrases the bot uses. Here the regexs the script is using so far:

Closing Connection
Transfer Completed
You already requested that pack
You already have that item queued
Sending (?:You|u) (?:Your Queued )?Pack
All Slots Full, Added (|you to the main )queue in position ([0-9]*)
You have been queued for ([0-9]*?) hr ([0-9]*?) min, currently in main queue position ([0-9]*?) of ([0-9]*?)\.  Estimated remaining time is ([0-9]*?) hr ([0-9]*?) min or (less|more)\.
You have been queued for ([0-9]*?) hours ([0-9]*?) minutes, currently in main queue position ([0-9]*?) of ([0-9]*?)\.
You have been queued for ([0-9]*?) minutes, currently in main queue position ([0-9]*?) of ([0-9]*?)\.
It has been placed in queue slot #(\d+), it will send when sends are available
Invalid Pack Number
The Owner Has Requested That No New Connections Are Made
All Slots Full,( Main)? queue of size [0-9]* is Full, Try Again Later
You can only have 1 transfer at a time
you must be on a known channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants