Changeset 9095 for mb2freedb/trunk

Show
Ignore:
Timestamp:
2007-05-02 21:48:11 (1 year ago)
Author:
robert
Message:

Undid some of the CDDB -> FREEDB changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mb2freedb/trunk/mb2freedb/request.py

    r9092 r9095  
    2222        self.server_port = server_port 
    2323 
    24     def do_FREEDB_HELLO(self, cmd, hello, proto): 
     24    def do_CDDB_HELLO(self, cmd, hello, proto): 
    2525        return "500 Unsupported CGI mode command.\r\n" 
    2626 
    27     def do_FREEDB_LSCAT(self, cmd, hello, proto): 
     27    def do_CDDB_LSCAT(self, cmd, hello, proto): 
    2828        out = [] 
    2929        out.append("210 OK, category list follows (until terminating `.')\r") 
     
    3333        return "".join(out) 
    3434 
    35     def do_FREEDB_QUERY(self, cmd, hello, proto): 
     35    def do_CDDB_QUERY(self, cmd, hello, proto): 
    3636        # Take the query string from the client and create DB query strings 
    3737        # 
     
    157157        return out  
    158158         
    159     def do_FREEDB_READ(self, cmd, hello, proto): 
     159    def do_CDDB_READ(self, cmd, hello, proto): 
    160160        cmd = cmd.lower().split(' ', 2) 
    161161        if len(cmd) < 2: 
     
    294294        return out  
    295295         
    296     def do_FREEDB_UNLINK(self, cmd, hello, proto): 
     296    def do_CDDB_UNLINK(self, cmd, hello, proto): 
    297297        return "500 Command syntax error, command unknown, command unimplemented.\r\n" 
    298298         
    299     def do_FREEDB_WRITE(self, cmd, hello, proto): 
     299    def do_CDDB_WRITE(self, cmd, hello, proto): 
    300300        return "500 Command syntax error, command unknown, command unimplemented.\r\n" 
    301301         
     
    310310The following commands are supported:\r 
    311311\r 
    312 FREEDB <subcmd> (valid subcmds: HELLO LSCAT QUERY READ UNLINK WRITE)\r 
     312CDDB <subcmd> (valid subcmds: HELLO LSCAT QUERY READ UNLINK WRITE)\r 
    313313DISCID <ntrks> <off_1> <off_2> <...> <off_n> <nsecs>\r 
    314314GET <file>\r 
     
    388388        return "401 No user information available.\r\n" 
    389389         
    390     def do_FREEDB(self, cmd, hello, proto): 
    391         self.dispatch(cmd, hello, proto, 'do_FREEDB_') 
     390    def do_CDDB(self, cmd, hello, proto): 
     391        self.dispatch(cmd, hello, proto, 'do_CDDB_') 
    392392        return "" 
    393393