<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -65,7 +65,7 @@ class rss2twitter():
 	twitApi = twitter.Api()
 	debug = False
 		
-	def __init__(self, username, password, feeds=None, cacheDir = './', tag=True):
+	def __init__(self, username, password, feeds=None, cacheDir = './', tag=&quot;New %s post&quot;):
 		self.tag = tag
 		self.feeds = feeds
 		self.twitApi.SetCredentials(username, password)
@@ -93,19 +93,16 @@ class rss2twitter():
 		if self.debug is True:
 			print &quot;processing %s&quot; % feedUrl
 		feed = feedparser.parse(feedUrl)
-		if(feed.feed.title):
-			feedtitle = feed.feed.title
+		feedtitle = feed.feed.title
 		for e in feed.entries:
 			if self.wasPublished(hashlib.sha1(feedUrl).hexdigest(), e) is not True:
-				if (self.tag == True and feedtitle):
-					txt  = &quot;New post from %s: &quot; % feedtitle
-				elif (self.tag == False or self.tag == &quot;&quot;):
+				if (self.tag == False or self.tag == &quot;&quot;):
 					txt = &quot;&quot;
 				else:
-					if(self.tag.find('%') &lt; 0 or not feedtitle):
-						txt = &quot;%s:&quot; % self.tag
-					else:
+					if(self.tag.find('%') &gt; -1):
 						txt = &quot;%s:&quot; % self.tag % feedtitle
+					else:
+						txt = &quot;%s:&quot; % self.tag
 				if (e.title is not &quot;&quot;):
 					txt = &quot;%s %s:&quot; % (txt, e.title)
 				link = shorten(e.link)
@@ -139,15 +136,15 @@ class rss2twitter():
 				if errno == 401:
 					if self.debug:
 						print &quot;Rate limited, sleeping for 5 mins&quot;
-					sleep(300)
+					time.sleep(300)
 				elif errno == 502:
 					if self.debug:
 						print &quot;Server upgrade, sleeping for 15 mins&quot;
-					sleep(900)
+					time.sleep(900)
 				elif errno == 503:
 					if self.debug:
 						print &quot;Server busy, sleeping for 30 mins&quot;
-					sleep(1800)
+					time.sleep(1800)
 				else:
 					raise twitter.TwitterError(err.info().items()[0][1])
 			else:</diff>
      <filename>rss2twit.py</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
 from rss2twit import rss2twitter
 
 # Two feeds, Default tag of &quot;New post from FeedTitle&quot;
-#instance1 = rss2twitter('twitterID', 'twitterPassword', ['http://example.org/feed1.rss', 'http://example.org/feed2.rss'], tag=True)
+#instance1 = rss2twitter('twitterID', 'twitterPassword', ['http://example.org/feed1.rss', 'http://example.org/feed2.rss'])
 #instance1.run(debug=True) #Run the first instance, debugging messages on.
 
 # One feed, tag disabled</diff>
      <filename>run.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e30f61e7fcd890bebc4fc7543dd597b6f727195a</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Kraut</name>
    <email>akraut@gmail.com</email>
  </author>
  <url>http://github.com/opie4624/pyrss2twitter/commit/564783df8373d85f78ff1b88db3158d7c9f0c4fe</url>
  <id>564783df8373d85f78ff1b88db3158d7c9f0c4fe</id>
  <committed-date>2008-08-31T18:25:55-07:00</committed-date>
  <authored-date>2008-08-31T18:25:55-07:00</authored-date>
  <message>Fixed default tag information</message>
  <tree>a6823f56b1161e3f95ea19b21244ac02a5e0a490</tree>
  <committer>
    <name>Andrew Kraut</name>
    <email>akraut@gmail.com</email>
  </committer>
</commit>
