[Bug 1180225] Re: all imdb-get searches return no results

2015-03-08 Thread Ubuntu Foundations Team Bug Bot
The attachment "imdb-patch-unfinished.patch" seems to be a patch.  If it
isn't, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1180225

Title:
  all imdb-get searches return no results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imdb-tools/+bug/1180225/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1180225] Re: all imdb-get searches return no results

2015-03-08 Thread Daniel
I attached a patch which partially fixes the problem for version 0.9-1. The 
problem is a probably a redesign of the imdb homepage. Unfortunately, the 
developer didn't add any comments about the expected input, which makes it 
complicated to find out how the new commands should look like.
With the patch, the tool is at least able to list search results again and it 
can extract the title (i got stuck at the extraction of the director). 
Personally, I think, bash and regular expressions are just the wrong language 
for parsing HTML, because it also leads to escaping problems (see below) and 
can return very surprising result if texts contain trigger words.

Here the result after patching:

$ imdb-get -s alien
1: Alien (1979)
2: Untitled Neill Blomkamp/Alien Project (2017)
3: Alien (2010) (Video)
4: Aliens (1986)
5: Alien³ (1992)
6: Outpost 37 (2014)
7: Alien: Resurrection (1997)
8: Aliens in the Attic (2009)
9: Cowboys & Aliens (2011)
10: Alienator (1990)
Select a Film: 1
Getting details from IMDB
id: tt0078748

$ imdb-get -a -s alien
1: Alien (1979)
2: Untitled Neill Blomkamp/Alien Project (2017)
3: Alien (2010) (Video)
4: Aliens (1986)
5: Alien³ (1992)
6: Outpost 37 (2014)
7: Alien: Resurrection (1997)
8: Aliens in the Attic (2009)
9: Cowboys & Aliens (2011)
10: Alienator (1990)
Select a Film: 1
Getting details from IMDB
id: tt0078748
title: Alien
year: 1979
director: Ridley Scott 
Writers: https://bugs.launchpad.net/ubuntu/+source/imdb-tools/+bug/1180225/+attachment/4338190/+files/imdb-patch-unfinished.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1180225

Title:
  all imdb-get searches return no results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imdb-tools/+bug/1180225/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1180225] Re: all imdb-get searches return no results

2015-01-31 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: imdb-tools (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1180225

Title:
  all imdb-get searches return no results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imdb-tools/+bug/1180225/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs