]> git.phdru.name Git - bookmarks_db.git/log
bookmarks_db.git
16 years agoFixed a bug - break out of the loop after finding the first working charset.
Oleg Broytman [Sat, 23 Feb 2008 22:58:56 +0000 (22:58 +0000)]
Fixed a bug - break out of the loop after finding the first working charset.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@180 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoIt is not HTTP charset, it is guessed charset.
Oleg Broytman [Sat, 23 Feb 2008 22:40:56 +0000 (22:40 +0000)]
It is not HTTP charset, it is guessed charset.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@179 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoTry a list of charsets, including the universal (utf-8) and the default ones.
Oleg Broytman [Sat, 23 Feb 2008 22:34:24 +0000 (22:34 +0000)]
Try a list of charsets, including the universal (utf-8) and the default ones.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@178 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoStop meddling with cp1252.
Oleg Broytman [Wed, 13 Feb 2008 18:18:18 +0000 (18:18 +0000)]
Stop meddling with cp1252.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@177 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoReplace BeautifulSoup's guessed cp1252 with DEFAULT_CHARSET.
Oleg Broytman [Wed, 13 Feb 2008 18:17:53 +0000 (18:17 +0000)]
Replace BeautifulSoup's guessed cp1252 with DEFAULT_CHARSET.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@176 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agocurrent_charset is only needed in main.
Oleg Broytman [Tue, 12 Feb 2008 21:44:10 +0000 (21:44 +0000)]
current_charset is only needed in main.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@175 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoTimeout 5 minutes is enough (Squid uses 3 minutes).
Oleg Broytman [Mon, 11 Feb 2008 22:42:19 +0000 (22:42 +0000)]
Timeout 5 minutes is enough (Squid uses 3 minutes).

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@174 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoEncode entities.
Oleg Broytman [Mon, 11 Feb 2008 20:11:30 +0000 (20:11 +0000)]
Encode entities.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@173 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRemoved dead code.
Oleg Broytman [Mon, 11 Feb 2008 20:11:05 +0000 (20:11 +0000)]
Removed dead code.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@172 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRecode entities before num. entities.
Oleg Broytman [Mon, 11 Feb 2008 19:58:39 +0000 (19:58 +0000)]
Recode entities before num. entities.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@171 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSwitched to utf-8.
Oleg Broytman [Mon, 11 Feb 2008 19:37:12 +0000 (19:37 +0000)]
Switched to utf-8.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@170 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRecode HTML entities.
Oleg Broytman [Mon, 11 Feb 2008 16:16:11 +0000 (16:16 +0000)]
Recode HTML entities.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@169 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRecode HTML entities.
Oleg Broytman [Mon, 11 Feb 2008 16:15:49 +0000 (16:15 +0000)]
Recode HTML entities.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@168 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoWHAT'S NEW in version 4.1.1.
Oleg Broytman [Mon, 11 Feb 2008 02:39:06 +0000 (02:39 +0000)]
WHAT'S NEW in version 4.1.1.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@167 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years ago2008.
Oleg Broytman [Mon, 11 Feb 2008 02:36:46 +0000 (02:36 +0000)]
2008.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@166 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoPython 2.5 allows try/except/finally in one clause.
Oleg Broytman [Mon, 11 Feb 2008 02:35:23 +0000 (02:35 +0000)]
Python 2.5 allows try/except/finally in one clause.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@165 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoNo need to catch BaseException.
Oleg Broytman [Sun, 10 Feb 2008 21:56:28 +0000 (21:56 +0000)]
No need to catch BaseException.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@164 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agofp could be None in http_error_default().
Oleg Broytman [Sun, 10 Feb 2008 21:49:40 +0000 (21:49 +0000)]
fp could be None in http_error_default().

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@163 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoCatch and print all exceptions.
Oleg Broytman [Sun, 10 Feb 2008 21:48:59 +0000 (21:48 +0000)]
Catch and print all exceptions.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@162 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years ago2008.
Oleg Broytman [Tue, 15 Jan 2008 19:51:59 +0000 (19:51 +0000)]
2008.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@161 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRemoved the mirror at phd.by.ru.
Oleg Broytman [Sun, 13 Jan 2008 18:52:26 +0000 (18:52 +0000)]
Removed the mirror at phd.by.ru.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@160 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDo the second check for title only if there is HEAD.
Oleg Broytman [Wed, 9 Jan 2008 09:38:10 +0000 (09:38 +0000)]
Do the second check for title only if there is HEAD.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@159 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSome sites put TITLE in HTML outside of HEAD.
Oleg Broytman [Tue, 8 Jan 2008 16:01:08 +0000 (16:01 +0000)]
Some sites put TITLE in HTML outside of HEAD.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@158 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSome sites put TITLE in HTML without HEAD.
Oleg Broytman [Tue, 8 Jan 2008 15:47:01 +0000 (15:47 +0000)]
Some sites put TITLE in HTML without HEAD.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@157 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDo not return an empty string - pass it to BSoupParser.
Oleg Broytman [Tue, 8 Jan 2008 11:21:52 +0000 (11:21 +0000)]
Do not return an empty string - pass it to BSoupParser.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@156 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoIf there is HEAD but no TITLE - return empty title.
Oleg Broytman [Tue, 8 Jan 2008 11:20:40 +0000 (11:20 +0000)]
If there is HEAD but no TITLE - return empty title.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@155 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug created by removing module 'string'.
Oleg Broytman [Mon, 31 Dec 2007 20:51:12 +0000 (20:51 +0000)]
Fixed a bug created by removing module 'string'.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@154 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoCache icons.
Oleg Broytman [Mon, 31 Dec 2007 11:12:35 +0000 (11:12 +0000)]
Cache icons.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@153 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoAdded a comment.
Oleg Broytman [Sun, 30 Dec 2007 21:04:21 +0000 (21:04 +0000)]
Added a comment.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@152 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoBetter fake headers.
Oleg Broytman [Sun, 30 Dec 2007 20:31:36 +0000 (20:31 +0000)]
Better fake headers.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@151 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug - log can be None.
Oleg Broytman [Sun, 30 Dec 2007 20:31:16 +0000 (20:31 +0000)]
Fixed a bug - log can be None.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@150 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoLog is always open.
Oleg Broytman [Sat, 29 Dec 2007 23:13:33 +0000 (23:13 +0000)]
Log is always open.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@149 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRemoved module 'string'.
Oleg Broytman [Sat, 29 Dec 2007 19:52:36 +0000 (19:52 +0000)]
Removed module 'string'.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@148 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoUnquote title for comparison.
Oleg Broytman [Sat, 29 Dec 2007 16:01:38 +0000 (16:01 +0000)]
Unquote title for comparison.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@147 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRemoved timeoutsocket - the timeout functionality has been implemented in socket...
Oleg Broytman [Fri, 28 Dec 2007 20:08:03 +0000 (20:08 +0000)]
Removed timeoutsocket - the timeout functionality has been implemented in socket module.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@146 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDo not display too much titles if they are equal.
Oleg Broytman [Fri, 28 Dec 2007 16:39:48 +0000 (16:39 +0000)]
Do not display too much titles if they are equal.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@145 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug.
Oleg Broytman [Fri, 28 Dec 2007 16:33:55 +0000 (16:33 +0000)]
Fixed a bug.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@144 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoMinor enhancements.
Oleg Broytman [Fri, 28 Dec 2007 15:44:13 +0000 (15:44 +0000)]
Minor enhancements.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@143 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoMinimal version of Python is 2.5 now.
Oleg Broytman [Fri, 28 Dec 2007 15:34:49 +0000 (15:34 +0000)]
Minimal version of Python is 2.5 now.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@142 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoShow version_info in X-User-Agent header.
Oleg Broytman [Fri, 28 Dec 2007 15:33:57 +0000 (15:33 +0000)]
Show version_info in X-User-Agent header.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@141 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDocumentation update.
Oleg Broytman [Fri, 28 Dec 2007 14:46:21 +0000 (14:46 +0000)]
Documentation update.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@140 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoPut content type in apostrophes.
Oleg Broytman [Fri, 28 Dec 2007 14:40:28 +0000 (14:40 +0000)]
Put content type in apostrophes.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@139 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFake headers to pretend this is a real browser.
Oleg Broytman [Thu, 27 Dec 2007 20:23:59 +0000 (20:23 +0000)]
Fake headers to pretend this is a real browser.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@138 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoHandle redirects when downloading the icon.
Oleg Broytman [Thu, 27 Dec 2007 19:49:06 +0000 (19:49 +0000)]
Handle redirects when downloading the icon.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@137 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoLog dups either to the logfile or to stdout but not to both.
Oleg Broytman [Thu, 27 Dec 2007 19:37:42 +0000 (19:37 +0000)]
Log dups either to the logfile or to stdout but not to both.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@136 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoStrip every line in title.
Oleg Broytman [Thu, 27 Dec 2007 19:33:24 +0000 (19:33 +0000)]
Strip every line in title.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@135 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoConvert redirect timeout to int if possible.
Oleg Broytman [Thu, 27 Dec 2007 19:33:01 +0000 (19:33 +0000)]
Convert redirect timeout to int if possible.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@134 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoAvoid double-escaping.
Oleg Broytman [Thu, 27 Dec 2007 19:31:26 +0000 (19:31 +0000)]
Avoid double-escaping.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@133 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoBeautifulSoap is already here.
Oleg Broytman [Thu, 27 Dec 2007 10:28:11 +0000 (10:28 +0000)]
BeautifulSoap is already here.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@132 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoOpen the error log in append mode.
Oleg Broytman [Mon, 24 Dec 2007 20:59:45 +0000 (20:59 +0000)]
Open the error log in append mode.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@131 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoVersion 4.1.
Oleg Broytman [Sun, 23 Dec 2007 10:57:10 +0000 (10:57 +0000)]
Version 4.1.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@130 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFlush stderr.
Oleg Broytman [Sun, 23 Dec 2007 10:54:16 +0000 (10:54 +0000)]
Flush stderr.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@129 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoMark the error output from the subprocess with a prefix.
Oleg Broytman [Sun, 23 Dec 2007 10:53:34 +0000 (10:53 +0000)]
Mark the error output from the subprocess with a prefix.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@128 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRedirect subprocess' stderr to my stderr.
Oleg Broytman [Sat, 22 Dec 2007 23:17:53 +0000 (23:17 +0000)]
Redirect subprocess' stderr to my stderr.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@127 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRedirect stderr to catch 'close failed: [Errno 9] Bad file descriptor' message
Oleg Broytman [Sat, 22 Dec 2007 22:01:19 +0000 (22:01 +0000)]
Redirect stderr to catch 'close failed: [Errno 9] Bad file descriptor' message
from os.close() in Subprocess.die().

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@126 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoHandle redirects when downloading the icon.
Oleg Broytman [Sat, 22 Dec 2007 20:53:08 +0000 (20:53 +0000)]
Handle redirects when downloading the icon.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@125 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDo not encode non-encodeable entities.
Oleg Broytman [Sat, 22 Dec 2007 20:52:14 +0000 (20:52 +0000)]
Do not encode non-encodeable entities.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@124 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoAlways close the input file.
Oleg Broytman [Sat, 22 Dec 2007 16:59:28 +0000 (16:59 +0000)]
Always close the input file.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@123 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoAdded BadDeclParser.
Oleg Broytman [Sat, 22 Dec 2007 16:58:32 +0000 (16:58 +0000)]
Added BadDeclParser.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@122 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSimpler temp file name.
Oleg Broytman [Wed, 19 Dec 2007 10:42:31 +0000 (10:42 +0000)]
Simpler temp file name.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@121 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSlightly changed warning message.
Oleg Broytman [Wed, 19 Dec 2007 10:18:30 +0000 (10:18 +0000)]
Slightly changed warning message.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@120 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug.
Oleg Broytman [Tue, 18 Dec 2007 18:42:18 +0000 (18:42 +0000)]
Fixed a bug.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@119 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDo all manipulations with title in one place.
Oleg Broytman [Tue, 18 Dec 2007 18:40:42 +0000 (18:40 +0000)]
Do all manipulations with title in one place.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@118 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoTimout can be float.
Oleg Broytman [Tue, 18 Dec 2007 18:37:14 +0000 (18:37 +0000)]
Timout can be float.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@117 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoChanged User-agent header: I saw a number of sites that forbid "Mozilla compatible...
Oleg Broytman [Tue, 18 Dec 2007 18:16:18 +0000 (18:16 +0000)]
Changed User-agent header: I saw a number of sites that forbid "Mozilla compatible" browsers.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@116 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoI saw a number of sites that forbid "Mozilla compatible".
Oleg Broytman [Tue, 18 Dec 2007 17:58:37 +0000 (17:58 +0000)]
I saw a number of sites that forbid "Mozilla compatible".

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@115 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoLog the module's name of the failed parse_html.
Oleg Broytman [Tue, 18 Dec 2007 06:10:34 +0000 (06:10 +0000)]
Log the module's name of the failed parse_html.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@114 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoTry BeautifulSoup; if it fails - fall back to HTML Parser.
Oleg Broytman [Tue, 18 Dec 2007 05:55:31 +0000 (05:55 +0000)]
Try BeautifulSoup; if it fails - fall back to HTML Parser.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@113 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRecode from DEFAULT_CHARSET if recoding from cp1252 (bad guess by BeautifulSoup)...
Oleg Broytman [Tue, 18 Dec 2007 05:52:48 +0000 (05:52 +0000)]
Recode from DEFAULT_CHARSET if recoding from cp1252 (bad guess by BeautifulSoup) failed.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@112 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug = meta_charset is True if HTTP charset is not guessed charset.
Oleg Broytman [Tue, 18 Dec 2007 05:42:21 +0000 (05:42 +0000)]
Fixed a bug = meta_charset is True if HTTP charset is not guessed charset.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@111 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoWHAT'S NEW in version 4.1.0.
Oleg Broytman [Sun, 16 Dec 2007 21:37:34 +0000 (21:37 +0000)]
WHAT'S NEW in version 4.1.0.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@110 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDirect return.
Oleg Broytman [Sun, 16 Dec 2007 21:36:13 +0000 (21:36 +0000)]
Direct return.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@109 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoCalculate if the charset came from HTTP or from HTML meta.
Oleg Broytman [Sun, 16 Dec 2007 19:55:26 +0000 (19:55 +0000)]
Calculate if the charset came from HTTP or from HTML meta.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@108 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoInherit HTMLParser (for unescape).
Oleg Broytman [Sun, 16 Dec 2007 19:50:53 +0000 (19:50 +0000)]
Inherit HTMLParser (for unescape).

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@107 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoAdded parser for html based on BeautifulSoup.
Oleg Broytman [Sun, 16 Dec 2007 19:45:36 +0000 (19:45 +0000)]
Added parser for html based on BeautifulSoup.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@106 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFetch description...
Oleg Broytman [Sun, 16 Dec 2007 17:24:42 +0000 (17:24 +0000)]
Fetch description...

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@105 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSplit parse_html.py into parse_html_htmlparser.py.
Oleg Broytman [Sun, 16 Dec 2007 17:24:07 +0000 (17:24 +0000)]
Split parse_html.py into parse_html_htmlparser.py.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@104 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoVersion 4.0.
Oleg Broytman [Tue, 23 Oct 2007 11:53:02 +0000 (11:53 +0000)]
Version 4.0.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@103 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoAdded bkmk-sort.
Oleg Broytman [Sat, 20 Oct 2007 09:34:21 +0000 (09:34 +0000)]
Added bkmk-sort.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@102 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDo not even open non-image files; report the content type of a non-image file.
Oleg Broytman [Fri, 19 Oct 2007 22:14:43 +0000 (22:14 +0000)]
Do not even open non-image files; report the content type of a non-image file.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@101 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRemoved dead code.
Oleg Broytman [Tue, 16 Oct 2007 20:01:13 +0000 (20:01 +0000)]
Removed dead code.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@100 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoCreate the list of sites with changed titles.
Oleg Broytman [Tue, 16 Oct 2007 10:53:34 +0000 (10:53 +0000)]
Create the list of sites with changed titles.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@99 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoDefault bookmarks format is now MOZILLA.
Oleg Broytman [Tue, 16 Oct 2007 10:51:49 +0000 (10:51 +0000)]
Default bookmarks format is now MOZILLA.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@98 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoQuote title for Mozilla (including apostrophe).
Oleg Broytman [Sun, 14 Oct 2007 10:44:23 +0000 (10:44 +0000)]
Quote title for Mozilla (including apostrophe).

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@97 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoRenamed BKMK_??FORMAT to BKMK_FORMAT.
Oleg Broytman [Sun, 14 Oct 2007 10:06:51 +0000 (10:06 +0000)]
Renamed BKMK_??FORMAT to BKMK_FORMAT.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@96 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoSlightly updated the docs.
Oleg Broytman [Sat, 13 Oct 2007 18:02:11 +0000 (18:02 +0000)]
Slightly updated the docs.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@95 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoBreak loops to avoid recursion problems.
Oleg Broytman [Sat, 13 Oct 2007 13:34:21 +0000 (13:34 +0000)]
Break loops to avoid recursion problems.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@94 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoClear bookmark's icon in advance, before any error occurs.
Oleg Broytman [Sat, 13 Oct 2007 09:03:41 +0000 (09:03 +0000)]
Clear bookmark's icon in advance, before any error occurs.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@93 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoStore only images as icons; do not store text/html errorrs.
Oleg Broytman [Sat, 13 Oct 2007 09:02:12 +0000 (09:02 +0000)]
Store only images as icons; do not store text/html errorrs.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@92 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug: import sys.
Oleg Broytman [Thu, 11 Oct 2007 15:56:51 +0000 (15:56 +0000)]
Fixed a bug: import sys.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@91 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoIgnore case for comparison.
Oleg Broytman [Thu, 11 Oct 2007 15:56:22 +0000 (15:56 +0000)]
Ignore case for comparison.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@90 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoMozilla format is not Netscape format (respective to multiline comments).
Oleg Broytman [Thu, 11 Oct 2007 13:21:35 +0000 (13:21 +0000)]
Mozilla format is not Netscape format (respective to multiline comments).

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@89 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoCopy icon and charset from the first of the duplicate bookmarks.
Oleg Broytman [Thu, 11 Oct 2007 10:37:12 +0000 (10:37 +0000)]
Copy icon and charset from the first of the duplicate bookmarks.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@88 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoExport to Mozilla format.
Oleg Broytman [Thu, 11 Oct 2007 10:20:54 +0000 (10:20 +0000)]
Export to Mozilla format.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@87 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a minor bug.
Oleg Broytman [Thu, 11 Oct 2007 10:11:15 +0000 (10:11 +0000)]
Fixed a minor bug.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@86 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed (C) year.
Oleg Broytman [Thu, 11 Oct 2007 01:29:59 +0000 (01:29 +0000)]
Fixed (C) year.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@85 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoBreak loops to prevent infinite loop error.
Oleg Broytman [Thu, 11 Oct 2007 01:27:40 +0000 (01:27 +0000)]
Break loops to prevent infinite loop error.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@84 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoNo need to split bookmark.href - a robot will split it itself.
Oleg Broytman [Thu, 11 Oct 2007 01:27:08 +0000 (01:27 +0000)]
No need to split bookmark.href - a robot will split it itself.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@83 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoFixed a bug: import codecs.
Oleg Broytman [Wed, 10 Oct 2007 16:18:20 +0000 (16:18 +0000)]
Fixed a bug: import codecs.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@82 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

16 years agoUse m_lib.defenc.
Oleg Broytman [Wed, 10 Oct 2007 16:18:01 +0000 (16:18 +0000)]
Use m_lib.defenc.

git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@81 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23