From 3b636aa26c634515731812fda947665c4678ed8d Mon Sep 17 00:00:00 2001
From: supergonkas <duramato@users.noreply.github.com>
Date: Mon, 7 Dec 2015 19:55:42 +0000
Subject: [PATCH] Fix a case where somethines the data-src would be null and it
 wouldnt parse ,mainly on newly added torrents  that still dont have it

---
 sickbeard/providers/transmitthenet.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sickbeard/providers/transmitthenet.py b/sickbeard/providers/transmitthenet.py
index 307a4ca84..18b3e64f4 100644
--- a/sickbeard/providers/transmitthenet.py
+++ b/sickbeard/providers/transmitthenet.py
@@ -132,6 +132,9 @@ class TransmitTheNetProvider(TorrentProvider):
 
                             temp_anchor = torrent_row.find('a', {"data-src": True})
                             title = temp_anchor['data-src'].rsplit('.', 1)[0]
+                            if not title:
+                                title = torrent_row.find('a', onmouseout='return nd();').string
+                                title = title.replace("[", "").replace("]", "").replace("/ ", "")
                             size = try_int(temp_anchor['data-filesize'])
 
                             temp_anchor = torrent_row.find('span', class_='time').parent.find_next_sibling()
-- 
GitLab