GithubHelp home page GithubHelp logo

indian-song-database's Introduction

Hi there ๐Ÿ‘‹

indian-song-database's People

Watchers

 avatar

indian-song-database's Issues

Fix for some Dishant URL's

Here is a patch (film.py) for some URL's that return 404 and should not.


@@ -41,7 +42,9 @@

     def read(self):
         print "Getting", self.lang, self.db, self.type, self.name, self.url
-        return htmlload.decode_entities(htmlload.url('http://' + self.db +
'/' + self.url))
+        u='http://' + self.db + '/' + urllib.quote(self.url)
+        print "Fetching: ", u
+        return htmlload.decode_entities(htmlload.url(u))


Original issue reported on code.google.com by [email protected] on 18 Feb 2009 at 1:01

Crawl gives error for smashits.

You are using string.partition, which is new in python2.5. The following
patch fixes it for earlier python versions.

--- crawl.py    (revision 5)
+++ crawl.py    (working copy)
@@ -202,8 +202,14 @@

     def do_index(self, index, html, item):
         # TODO: Why not just index the collections as well? Why restrict it to
movies?
-        html = html.partition('Movies</span>')
-        html = html[2] or html[0]
+        #AC partition is new python2.5!
+        #html = html.partition('Movies</span>')
+        html = html.split('Movies</span>',1)
+        if len(html) == 2:
+            html = html[1]
+        else:
+            html = html[0]
+        #html = html[2] or html[0]
         for match in re.findall('href="/(music/' + item[0] +
'/songs/(\d+).*?)"
>(.*?)</a>', html, re.UNICODE):
             movie = film.entity(index.db, 'movie', index.lang, match[1],
match[
2], match[0])
             if_new(movie, MOVIE_DAYS, self.do_movie, item)

Original issue reported on code.google.com by [email protected] on 21 Jan 2009 at 7:11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.