From MAILER-DAEMON Sun Mar 06 18:32:02 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PwNQg-0005sM-Dw
	for mharc-librefm-bugs@gnu.org; Sun, 06 Mar 2011 18:32:02 -0500
Received: from [140.186.70.92] (port=34379 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PwNQe-0005s3-1k
	for librefm-bugs@nongnu.org; Sun, 06 Mar 2011 18:32:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwNQc-0006xU-WA
	for librefm-bugs@nongnu.org; Sun, 06 Mar 2011 18:31:59 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:46757
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwNQc-0006xQ-SF
	for librefm-bugs@nongnu.org; Sun, 06 Mar 2011 18:31:58 -0500
Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwNQc-0005sv-79
	for librefm-bugs@nongnu.org; Sun, 06 Mar 2011 23:31:58 +0000
Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwNUe-0007Dr-Qk
	for librefm-bugs@nongnu.org; Sun, 06 Mar 2011 23:36:09 +0000
Date: Sun, 06 Mar 2011 23:36:08 +0000
To: librefm-bugs@nongnu.org
X-PHP-Originating-Script: 0:sendmail.php
From: anonymous <INVALID.NOREPLY@gnu.org>
X-Savane-Server: savannah.gnu.org:80 [10.1.0.103]
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
X-Savane-Project: librefm
X-Savane-Tracker: bugs
X-Savane-Item-ID: 32695
User-Agent: Opera/9.80 (X11; Linux i686; U; en-GB) Presto/2.7.62 Version/11.01
X-Apparently-From: 92.239.234.80
Message-Id: <20110306-233607.sv0.98354@savannah.gnu.org>
References: 
In-Reply-To: 
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [Librefm-bugs] [bug #32695] Problem forwarding single quote
	character
X-BeenThere: librefm-bugs@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: librefm-bugs.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/librefm-bugs>
List-Post: <mailto:librefm-bugs@nongnu.org>
List-Help: <mailto:librefm-bugs-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 Mar 2011 23:32:01 -0000

URL:
  <http://savannah.gnu.org/bugs/?32695>

                 Summary: Problem forwarding single quote character
                 Project: GNU FM
            Submitted by: None
            Submitted on: Sun 06 Mar 2011 23:36:07 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Scrobbling
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When forwarding scrobbles to Last-fm tracks with an apostrophe (single quote)
are forwarded with a double quote.

e,g,
 Sarah Brightman – Storia d'amore
becomes
 Sarah Brightman – Storia d''amore

and
 T'Pau – China In Your Hand 
becomes
 T''Pau – China In Your Hand 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32695>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



From MAILER-DAEMON Mon Mar 07 05:29:26 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PwXgs-0007Oy-1b
	for mharc-librefm-bugs@gnu.org; Mon, 07 Mar 2011 05:29:26 -0500
Received: from [140.186.70.92] (port=36915 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PwXgm-0007KC-RN
	for librefm-bugs@nongnu.org; Mon, 07 Mar 2011 05:29:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwXII-0000eP-4O
	for librefm-bugs@nongnu.org; Mon, 07 Mar 2011 05:04:03 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:52029
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwXII-0000eK-0v
	for librefm-bugs@nongnu.org; Mon, 07 Mar 2011 05:04:02 -0500
Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwXIH-0004eX-MG
	for librefm-bugs@nongnu.org; Mon, 07 Mar 2011 10:04:01 +0000
Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <www-data@savannah.gnu.org>) id 1PwXML-00030Q-VX
	for librefm-bugs@nongnu.org; Mon, 07 Mar 2011 10:08:14 +0000
Date: Mon, 07 Mar 2011 10:08:13 +0000
To: librefm-bugs@nongnu.org
X-PHP-Originating-Script: 0:sendmail.php
From: anonymous <INVALID.NOREPLY@gnu.org>
X-Savane-Server: savannah.gnu.org:80 [10.1.0.103]
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
X-Savane-Project: librefm
X-Savane-Tracker: bugs
X-Savane-Item-ID: 32699
User-Agent: Opera/9.80 (X11; Linux i686; U; en-GB) Presto/2.7.62 Version/11.01
X-Apparently-From: 92.239.234.80
Message-Id: <20110307-100813.sv0.51425@savannah.gnu.org>
References: 
In-Reply-To: 
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [Librefm-bugs] [bug #32699] Problem forwarding tags containg the
	ampersand and/or comma characters
X-BeenThere: librefm-bugs@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: librefm-bugs.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/librefm-bugs>
List-Post: <mailto:librefm-bugs@nongnu.org>
List-Help: <mailto:librefm-bugs-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Mar 2011 10:29:24 -0000

URL:
  <http://savannah.gnu.org/bugs/?32699>

                 Summary: Problem forwarding tags containg the ampersand
and/or comma characters
                 Project: GNU FM
            Submitted by: None
            Submitted on: Mon 07 Mar 2011 10:08:13 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Scrobbling
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Tracks whose tags contain either (or both) the comma or ampersand characters
are not being forwarded to Last-fm by Libre-fm.

e.g. With the album "Evita: Music From the Motion Picture" tagged by
Musicbrainz Libre-fm receives and shows all the tracks but Last-fm only shows
tracks 1, 5 & 14 recieved from libre-fm.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32699>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



From MAILER-DAEMON Mon Mar 28 09:11:30 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Q4CEE-0006bb-D3
	for mharc-librefm-bugs@gnu.org; Mon, 28 Mar 2011 09:11:30 -0400
Received: from [140.186.70.92] (port=38272 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Q4CEB-0006Xh-L1
	for librefm-bugs@nongnu.org; Mon, 28 Mar 2011 09:11:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1Q4CE9-0007Qb-PP
	for librefm-bugs@nongnu.org; Mon, 28 Mar 2011 09:11:27 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:44764)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1Q4CE9-0007QX-O4
	for librefm-bugs@nongnu.org; Mon, 28 Mar 2011 09:11:25 -0400
Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <www-data@savannah.gnu.org>)
	id 1Q4CE9-0003PN-CU; Mon, 28 Mar 2011 13:11:25 +0000
Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <www-data@savannah.gnu.org>)
	id 1Q4CJJ-0003nj-Tn; Mon, 28 Mar 2011 13:16:45 +0000
Date: Mon, 28 Mar 2011 13:16:45 +0000
To: Petr Viktorin <encukou@gmail.com>, librefm-bugs@nongnu.org
X-PHP-Originating-Script: 0:sendmail.php
From: Petr Viktorin <INVALID.NOREPLY@gnu.org>
X-Savane-Server: savannah.gnu.org:443 [10.1.0.103]
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
X-Savane-Project: librefm
X-Savane-Tracker: bugs
X-Savane-Item-ID: 32936
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64;
	en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.10
	Chromium/10.0.648.133 Chrome/10.0.648.133 Safari/534.16
X-Apparently-From: 91.156.250.17 (Savane authenticated user encukou)
Message-Id: <20110328-131645.sv73374.41899@savannah.gnu.org>
References: 
In-Reply-To: 
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Cc: 
Subject: [Librefm-bugs] [bug #32936] lastscrape: BeautifulSoup fails to
	parse last.fm pages
X-BeenThere: librefm-bugs@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: librefm-bugs.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/librefm-bugs>
List-Post: <mailto:librefm-bugs@nongnu.org>
List-Help: <mailto:librefm-bugs-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Mar 2011 13:11:28 -0000

URL:
  <http://savannah.gnu.org/bugs/?32936>

                 Summary: lastscrape: BeautifulSoup fails to parse last.fm
pages
                 Project: GNU FM
            Submitted by: encukou
            Submitted on: Mon 28 Mar 2011 01:16:45 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Apparently, last.fm made a subtle change to their pages that prevents
BeautifulSoup from parsing the scrobbles correctly.

librefm/trunk/lastscrape$ ./lastscrape.py encukou lastfm_dump.txt
Traceback (most recent call last):
  File "./lastscrape.py", line 98, in <module>
    sys.exit(main(*sys.argv))
  File "./lastscrape.py", line 89, in main
    for artist, track, timestamp in fetch_tracks(args[1]):
  File "./lastscrape.py", line 75, in fetch_tracks
    for artist, track, timestamp in tracks:
  File "./lastscrape.py", line 34, in parse_page
    for row in soup.find('table', 'candyStriped tracklist').findAll('tr'):
AttributeError: 'NoneType' object has no attribute 'findAll'

(on a side note, BeautifulSoup 3.2 has been out for some while; it might make
sense to tell users to use that instead of the 3.0.7a if it's made to work)




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



From MAILER-DAEMON Mon Mar 28 09:52:29 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Q4Crt-0007FL-4Q
	for mharc-librefm-bugs@gnu.org; Mon, 28 Mar 2011 09:52:29 -0400
Received: from [140.186.70.92] (port=54993 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Q4Crp-0006zL-3y
	for librefm-bugs@nongnu.org; Mon, 28 Mar 2011 09:52:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1Q4CrW-0006Kd-Uw
	for librefm-bugs@nongnu.org; Mon, 28 Mar 2011 09:52:07 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:52531)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <www-data@savannah.gnu.org>) id 1Q4CrW-0006KX-TQ
	for librefm-bugs@nongnu.org; Mon, 28 Mar 2011 09:52:06 -0400
Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <www-data@savannah.gnu.org>)
	id 1Q4CrW-0003sY-JA; Mon, 28 Mar 2011 13:52:06 +0000
Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <www-data@savannah.gnu.org>)
	id 1Q4Cwh-0004d2-2N; Mon, 28 Mar 2011 13:57:27 +0000
Date: Mon, 28 Mar 2011 13:57:27 +0000
To: Petr Viktorin <encukou@gmail.com>, librefm-bugs@nongnu.org
X-PHP-Originating-Script: 0:sendmail.php
From: Petr Viktorin <INVALID.NOREPLY@gnu.org>
X-Savane-Server: savannah.gnu.org:443 [10.1.0.103]
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
X-Savane-Project: librefm
X-Savane-Tracker: bugs
X-Savane-Item-ID: 32936
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64;
	en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.10
	Chromium/10.0.648.133 Chrome/10.0.648.133 Safari/534.16
X-Apparently-From: 91.156.250.17 (Savane authenticated user encukou)
Message-Id: <20110328-135726.sv73374.93907@savannah.gnu.org>
References: <20110328-131645.sv73374.41899@savannah.gnu.org>
In-Reply-To: <20110328-131645.sv73374.41899@savannah.gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Cc: 
Subject: [Librefm-bugs] [bug #32936] lastscrape: BeautifulSoup fails to
	parse last.fm pages
X-BeenThere: librefm-bugs@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: librefm-bugs.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/librefm-bugs>
List-Post: <mailto:librefm-bugs@nongnu.org>
List-Help: <mailto:librefm-bugs-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/librefm-bugs>,
	<mailto:librefm-bugs-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Mar 2011 13:52:27 -0000

Follow-up Comment #1, bug #32936 (project librefm):

The problem is caused by a weird comment: <!–[if IE]><![endif]–> (with
en-dashes instead of two hyphen-minuses) on line 9 of every last.fm page.
Removing this no-op comment makes everything work again.

I believe the attached patch is trivial enough so you can accept it without a
copyright assignment. (And if not, it's trivial to write from scratch.)

I filed a bug in BeautifulSoup at
https://bugs.launchpad.net/beautifulsoup/+bug/744278 – if that gets fixed no
workarounds are necessary.

Also, BeautifulSoup 3.2 works. Lastscrape's README should be updated
accordingly.

(file #23036)
    _______________________________________________________

Additional Item Attachment:

File name: lastscrape.diff                Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



