[RELEASE] JDownloader Plugin

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
XavHorneT Offline
Member
Posts: 55
Joined: Oct 2008
Reputation: 0
Location: Paris, France
Post: #16
Ah that aswer why i read the jdownloader wiki and i found the option "-ghost" but it doesn't seem to work.

@dlc-containers
Well, just an option to find and add a dlc-containers from the hard drive repertory.Rofl
find quote
royalcs Offline
Junior Member
Posts: 2
Joined: Oct 2010
Reputation: 0
Post: #17
2 questions

How could i add an url to be downloaded by jdownloader? from an different plugin, or from within your plugin?
(I've seen the jdownloader.action_addlink(url) in your default.py but i could not get it to work. this is my first time with phyton so excuse me please)

is there a way to play a currently downloaded *.avi file with xbmc? I can play the *.avi.part files with vlc player, but once the download is finnished the *.avi.part file will be named to *.avi so the player will stop.
find quote
yowill Offline
Junior Member
Posts: 16
Joined: Oct 2010
Reputation: 0
Post: #18
Hey men I ha always think that would be amazing while y see my Movies the HTPC downloads what I want... but I am not user of Torrent.
I love Jdownloader I have searched a Plugin like this a lot of time... like I could not find it..
Yesterday I start to write my own with the HTTPs recuest... I start with Bash Part because I dont Know Python....
Today I Navigate In the XBMC addons and i found you... at the first I was sad... But then I saw ... The code I have wrote does what the your does not.... SEND the Links....
I think that is Wonder because a lot of like me use a Standalone HTPC and we want donwload with our remotes....
Can I become your partner... Together take this plugin to become awesome...
I have always wanted to return the comunity a little for all the amazing Job in XBMC...
So What do you say....Confused?
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #19
you can pass a link to the plugin to add it Wink

just have to figure how, pgoeri will give us an example Wink

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
yowill Offline
Junior Member
Posts: 16
Joined: Oct 2010
Reputation: 0
Post: #20
Ok...
I made a .sh script. I use it, Calling it with the help of Executor Plugin. (not nice way)

Working (Now):
With the File system Manager of XBMC I make a Directoty called ~/Links
then in that Directoty I put a file that I make, a links.txt where I put the links to download line by line, I move it to ~/Links, I execute .sh and it does the job.

Working (Future):
When execute Jdownloader plugin in the "option" "Load Links" it open the file manager and let to choose the .txt with the links, rename it to links.txt and move it to ~/Links.

Obvios the file with the links have to be created by the user, put there the links line by line... and take to the HTPC XBMC within a USB or whetever.

Now Jdownloader plugin will call it with:
import os
OSRun("XXXX.sh ").

There must be Directory Called "sh-Linux" "bat-windows" "XX-mac" because some body should help us whith the code for every OS.. (mine is just for Linux)
find quote
pgoeri Offline
Senior Member
Posts: 102
Joined: Jun 2010
Reputation: 1
Location: Austria
Post: #21
Code:
[b]Version 1.0.1[/b]
    * Changed license to GPL v3
    * Uses notifications instead of dialogs for messages
    * Improved interface for other addons

I've also made a little description about how to use this plugin from other plugins.
Have a look at the interface description
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #22
great work here Wink

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
pgoeri Offline
Senior Member
Posts: 102
Joined: Jun 2010
Reputation: 1
Location: Austria
Post: #23
It's really great getting some response lately Smile Thanks guys.

royalcs Wrote:2 questions

How could i add an url to be downloaded by jdownloader? from an different plugin, or from within your plugin?
(I've seen the jdownloader.action_addlink(url) in your default.py but i could not get it to work. this is my first time with phyton so excuse me please)

is there a way to play a currently downloaded *.avi file with xbmc? I can play the *.avi.part files with vlc player, but once the download is finnished the *.avi.part file will be named to *.avi so the player will stop.

The interface description should answer your first question.
@Q2: I've never tried to play a partially downloaded file, so I can't help you with this.

yowill Wrote:I think that is Wonder because a lot of like me use a Standalone HTPC and we want donwload with our remotes....
Can I become your partner... Together take this plugin to become awesome...
So What do you say....Confused?

I've also running xbmc on a standalone htpc and my long-term goal is to download new movies and tv shows from within xbmc, without the need to boot my laptop.

I encourage you to work also on this plugin by sending me patches. Would be great Smile

@"adding links from a txt file"
I'm not quite sure, that this is a realistic scenario. I guess you would create the link.txt file on another computer. Wouldn't it be easier to just access the jd-webinterface from this computer and at the links direct from there?
find quote
yowill Offline
Junior Member
Posts: 16
Joined: Oct 2010
Reputation: 0
Post: #24
Yes you are right....about the creating of links.txt...

But in some cases like me... i searched the links in my Job... then i could take them to the Jdownloader with the USB... I am lazy I dont want to take the other PC....
And you have to be and advance user for having a small network in your home... and acces to jdownloader web (not so smart but...)

The idea of download directly with out manual search of the links is beautiful but I can no figure HOW... is too complicated... search the links is "dificult" because you search the NNN title with NN Resolution in NN languaje... etc...and do this automatic... I dont know...

I think the Jdownloader plugin should have a setup.sh and this install jdownloader and I dont know how active de Jdonwloader Remote Control... this way will be more and more automatic ... for people having standalone Live XBMC...

Sorry for my english... Spanish is my speaking.... by the way tell me how I translate the Plugin... that will be very nice for a lot people...
find quote
pgoeri Offline
Senior Member
Posts: 102
Joined: Jun 2010
Reputation: 1
Location: Austria
Post: #25
Hola! Que tal?
Just had my third spanish lesson today Smile

@links.txt
I stand corrected. For gathering links in the office, this feature would make sense. I will add it in the next release. Ok?

@Add downloads from within xbmc
You'll see what I mean, when I release my next plugin Smile

@setup.sh
Hm, I'll write it down and think about it later.

@translation
For an initial translation just download the current version of the english strings from the svn repo.
Then replace the english strings with the spanish translations and send me the file.
find quote
yowill Offline
Junior Member
Posts: 16
Joined: Oct 2010
Reputation: 0
Post: #26
I will send you the translation....
I will send you the .sh for load links you should just call it from your plugin...
or maybe you think do it directly in python whatever it must help you... but It has a Issue with the Megaupload Links they have characters like =? and the are not reading correctly from jd-remote control we must url-encode that is easy in online free services... but the code for do it directlyConfused
I need some help I have Headache...
find quote
pgoeri Offline
Senior Member
Posts: 102
Joined: Jun 2010
Reputation: 1
Location: Austria
Post: #27
Your script for adding the links will be appreciated. I'll have look at it, but in the end I will implement it directly with python. The endcoding of the url is no problem with python.
find quote
yowill Offline
Junior Member
Posts: 16
Joined: Oct 2010
Reputation: 0
Post: #28
#!/bin/bash

#########################################################
# Jdownloader.sh Script #
# Envia Peticiones http con los enlaces de descarga #
# #
#########################################################

# Verificamos la Instalacion de Curl

CURL=`find /usr/bin/curl`

if [ "$CURL" = "/usr/bin/curl" ]; then
echo "curl esta instalado"
else
echo "culr no esta instalado"
sudo apt-get install curl
fi

# Verificamos la existencia del directorio

LINKSDIR=`find ~/Links | head -n1`
WHOAMI=`whoami`

if [ "$LINKSDIR" = "/home/$WHOAMI/Links" ]; then
echo "el directorio de links existe"
else
echo "el directorio de links no existe"
mkdir ~/Links
fi

# Verificamos la existencia del archivo "links.txt"

LINKSTXT=`find ~/Links/links.txt`

if [ "$LINKSTXT" = "/home/$WHOAMI/Links/links.txt" ]; then
echo "el archivo existe"
else
echo "debe de crear el archivo links.txt y cargarlo en la carpeta Links"
fi

# Cargamos en numero de links

NUMLINKS=`wc -l ~/Links/links.txt | grep -e [0-9] -o`
NUMLINKS=${NUMLINKS//:space:}


# Enviamos los Links

CONTADOR=1

while [ $CONTADOR -lt $NUMLINKS ];

do

LINE=`expr $CONTADOR \* -1`
SEND=`head $LINE ~/Links/links.txt | tail -1`
curl http://localhost:10025/action/add/links/grabber0/start1/$SEND

let CONTADOR=CONTADOR+1


done
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #29
you can make the same in python to not be platform dependant

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
yowill Offline
Junior Member
Posts: 16
Joined: Oct 2010
Reputation: 0
Post: #30
ppic Wrote:you can make the same in python to not be platform dependant

I don't know python...
find quote
Post Reply