[Plugin] Telegramer (Beta)

Suggest, post, or discuss plugins for Deluge
Black Lynx
New User
New User
Posts: 5
Joined: Tue Mar 07, 2017 6:07 pm

Re: [Plugin] Telegramer (Beta)

Post by Black Lynx »

noam wrote:Unfortunately for now Windows isn't supported.
Some of the Python requirements the module needs to function aren't available when running on Windows as they are when running on Linux.
Hopefully I will find the time to make it work in the future.
Hi, noam.
I'm very interested in the plugin, ready to test it in Windows.
crasskitty
New User
New User
Posts: 2
Joined: Fri Mar 10, 2017 10:30 am

Re: [Plugin] Telegramer (Beta)

Post by crasskitty »

Did you just installed pyTelegramBotAPI? Got any error while enabling it?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [Plugin] Telegramer (Beta)

Post by Cas »

Afraid on Windows you can't simply install a python module as Deluge is a standalone package. However the plugin author could bundle it or with a bit of faffing you can place the files in site-packages zip in the Deluge application folder.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [Plugin] Telegramer (Beta)

Post by Cas »

What you should do is create a folder (e.g. include) in your plugin then drop the files for the module in there and then in code try for external module and fallback on ImportError to included module.

Yarss2 does this: https://bitbucket.org/bendikro/deluge-y ... ?at=master
noam
Member
Member
Posts: 11
Joined: Mon Jun 06, 2016 1:11 pm

Re: [Plugin] Telegramer (Beta)

Post by noam »

Cas wrote:What you should do is create a folder (e.g. include) in your plugin then drop the files for the module in there and then in code try for external module and fallback on ImportError to included module.

Yarss2 does this: https://bitbucket.org/bendikro/deluge-y ... ?at=master
Thanks Cas. If I remember correctly, the issue I had when testing on Windows was packaging modules such as requests which are much "heavier" than a few Python files in a single directory.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [Plugin] Telegramer (Beta)

Post by Cas »

Looking at your core code I'm sure you can easily change usage of requests for twisted.web: https://twistedmatrix.com/documents/14. ... lient.html
noam
Member
Member
Posts: 11
Joined: Mon Jun 06, 2016 1:11 pm

Re: [Plugin] Telegramer (Beta)

Post by noam »

Cas wrote:Looking at your core code I'm sure you can easily change usage of requests for twisted.web: https://twistedmatrix.com/documents/14. ... lient.html
I'll definitely take a look at that, thanks for the tip.
noam
Member
Member
Posts: 11
Joined: Mon Jun 06, 2016 1:11 pm

Re: [Plugin] Telegramer (Beta)

Post by noam »

Black Lynx wrote:
noam wrote:Unfortunately for now Windows isn't supported.
Some of the Python requirements the module needs to function aren't available when running on Windows as they are when running on Linux.
Hopefully I will find the time to make it work in the future.
Hi, noam.
I'm very interested in the plugin, ready to test it in Windows.
If you're still up for trying out Telegramer on Windows, I've rewritten much of the code and have an alpha version ready for testing. :)
Github: https://github.com/noam09/deluge-telegramer
Releases: https://github.com/noam09/deluge-telegramer/releases

There are some known issues you should expect from this Alpha version, they will be worked out soon. First I would like to see if the basic plugin works for users other than myself.

Hopefully this helps out other people out there - looking forward to comments/suggestions/bugs/etc. :)
Black Lynx
New User
New User
Posts: 5
Joined: Tue Mar 07, 2017 6:07 pm

Re: [Plugin] Telegramer (Beta)

Post by Black Lynx »

Sorry for delay.
1.Installed - Done
2.Launch - Done
3.Get Token, Send Token to plugin, get user ID, Send ID to plugin.
4.Save, TEST and nothing.
Plugin have logging?
noam
Member
Member
Posts: 11
Joined: Mon Jun 06, 2016 1:11 pm

Re: [Plugin] Telegramer (Beta)

Post by noam »

Black Lynx wrote:Sorry for delay.
1.Installed - Done
2.Launch - Done
3.Get Token, Send Token to plugin, get user ID, Send ID to plugin.
4.Save, TEST and nothing.
Plugin have logging?
Can you please try with the latest release (v1.1.1)?
https://github.com/noam09/deluge-telegramer/releases
If the latest release still isn't working after installing it and restarting the client, this page explains how to produce a debug log which you can send me by PM: http://dev.deluge-torrent.org/wiki/Trou ... ficLogging
Post Reply