projects
/
pompage.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD Fonction pour ouvrir les détails de tous les films affichées
[pompage.git]
/
src
/
modules
/
allocine.rb
diff --git
a/src/modules/allocine.rb
b/src/modules/allocine.rb
index
d5da08c
..
893f7ed
100644
(file)
--- a/
src/modules/allocine.rb
+++ b/
src/modules/allocine.rb
@@
-6,13
+6,17
@@
require 'iconv'
\r
require "basemodule.rb"
\r
\r
\r
require "basemodule.rb"
\r
\r
-# un m
ixin pour allocine
\r
+# un m
odule d'importation pour le site "www.allocine.fr"
\r
class Allocine < Basemodule
\r
class Allocine < Basemodule
\r
-
\r
+
\r
+ def createConnexion
\r
+ @connexion = Net::HTTP::new('www.allocine.fr') if @connexion.nil?
\r
+ end
\r
+
\r
# Voir le parent.
\r
def rechercherFilm(titre)
\r
# Voir le parent.
\r
def rechercherFilm(titre)
\r
- @connexion = Net::HTTP::new('www.allocine.fr') if @connexion.nil?
\r
-
\r
+ createConnexion
\r
+
\r
donneesHtml = nil
\r
begin
\r
begin
\r
donneesHtml = nil
\r
begin
\r
begin
\r
@@
-49,7
+53,7
@@
class Allocine < Basemodule
\r
# Voir le parent.
\r
def load(id, film)
\r
\r
# Voir le parent.
\r
def load(id, film)
\r
- @connexion = Net::HTTP::new('www.allocine.fr') if @connexion.nil?
\r
+ createConnexion
\r
\r
r, ficheHtml = @connexion.get("/film/fichefilm_gen_cfilm=#{id}.html")
\r
\r
\r
r, ficheHtml = @connexion.get("/film/fichefilm_gen_cfilm=#{id}.html")
\r
\r