From 1204dc70d00e1cc42c2b67ddf192e72b682a59aa Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 14 Dec 2012 15:23:38 +0000 Subject: [PATCH] * integrate reviews into website --- BuildData.groovy | 18 ++++++- build.xml | 11 ++--- website/base.css | 51 +++++++++++++++++++ website/download.php | 4 +- website/images/thumbs_up.png | Bin 0 -> 458 bytes website/index.html | 29 ++++++++++- website/reviews.json | 92 +++++++++++++++++++++++++++++++++++ website/reviews.php | 48 ++++++++++++++++++ 8 files changed, 243 insertions(+), 10 deletions(-) create mode 100644 website/images/thumbs_up.png create mode 100644 website/reviews.json create mode 100644 website/reviews.php diff --git a/BuildData.groovy b/BuildData.groovy index be3ba98b..6ad9968a 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -2,7 +2,7 @@ // UPDATE release-groups.txt FROM http://scenegrouplist.com/lists_sgl.php -@Grab('org.jsoup:jsoup') +@Grab(group='org.jsoup', module='jsoup', version='1.7.1') import org.jsoup.* def sgl = [] @@ -168,3 +168,19 @@ names = seriesSorter as List gz(series_out, names) println "Series Count: " + names.size() + + + + +// prepare reviews from SF.net for website +def reviewPage = retry(10, 1000){ Jsoup.connect('https://sourceforge.net/projects/filebot/reviews/?sort=usefulness&filter=thumbs_up').get() } +def reviews = reviewPage.select('article[itemtype~=Review]').findResults{ article -> + article.select('*[itemprop=reviewBody]').findAll{ !(it.attr('class') =~ /spam/) }.findResults{ review -> + [user:article.select('*[itemprop=name]').text(), date:article.select('*[datetime]').text(), text:review.text()] + } +}.flatten() + +use (groovy.json.JsonOutput) { + println "Reviews: ${reviews.size()}" + reviews.toJson().prettyPrint().saveAs('website/reviews.json') +} diff --git a/build.xml b/build.xml index e9e7044c..0ddeb208 100644 --- a/build.xml +++ b/build.xml @@ -28,8 +28,6 @@ - - @@ -605,10 +603,11 @@ - - - - + + + + + diff --git a/website/base.css b/website/base.css index 162ae4e2..78c90006 100644 --- a/website/base.css +++ b/website/base.css @@ -430,3 +430,54 @@ div.screencast:hover .play { width: 300px; margin: 25px auto; } + +.message.box { + background-color: #F5F5F5; + border-radius: 4px; + box-shadow: 0 2px 5px #A2A2A2; + background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)); +} + +.review { + margin: 30px 25px; + display: block; + text-decoration: none !important; + padding: 10px; + min-height: 44px; + max-width: 380px; +} + +.review p{ + font-size: 11px; + line-height: 18px; + color: #555555; + margin:0px 0px 0px 48px +} + +.review .text{ + font-family: 'Dawning of a New Day', cursive; + font-size: 24px; +} + +.review .user{ + font-size: 12px; + font-weight: bold; + color: #0077AA; + vertical-align: baseline; +} + +.thumbs { + float:left; + border-radius: 4px 4px 4px 4px; + background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)); + background-color: #0088BB; + border: 1px solid #006699; + text-align: center; + height: 42px; + width: 42px; +} + +.thumbs img{ + position:relative; + top: 8px; +} diff --git a/website/download.php b/website/download.php index af96922d..59f94f0c 100644 --- a/website/download.php +++ b/website/download.php @@ -44,11 +44,11 @@ if ($mode != 's') {

Shutter at the thought of how many hours and days of time FileBot has saved you? - You can show your appreciation and support for future development by donating! + You can show your appreciation and support for future development by donating.

- + X1^@s6-qmI800009a7bBm000XU z000XU0RWnu7ytkPd`Uz>R7ef2l)EkkQ51$}kZ@cgh`6*8l?RZBibUrHghHiK35ADH zs5M$|;1xu1qLNTJPDJ98xP;0X-!C&K+cJA*uvhYD?|)tXy=L|$N|Ge<;28fISo6ev zb&)SnLnyNrlUd-){o(J3@~zi#$IQ1JUOM%O)=cFRyvz8!)Fk@ZmyHuw8`MYrYFRQ3Mkfbx*0Md)~`HSEP z=#Gc5%@~zO)Q3PQJJ3I^eElk{dPB~>yHOQt3R7A{4?$g@f6rv3F#UJI>5!djX+1jc z64fId!cGxc2F;M2&LCJ + + + + +

Posted by on

+

+ + +
start

Getting Started

@@ -294,7 +321,7 @@ Will you join us?

Contact

- The project is continuously seeking for improvements, so anykind of feedback is more than welcome + The project is continuously seeking for improvements, so anykind of feedback is more than welcome and if there's any questions or problems just start posting in the forums or check the FAQ. We're social as well. Follow us on twitter and become a fan on facebook.

diff --git a/website/reviews.json b/website/reviews.json new file mode 100644 index 00000000..b5a55c8e --- /dev/null +++ b/website/reviews.json @@ -0,0 +1,92 @@ +[ + { + "user": "Kate Smith", + "date": "2012-11-05", + "text": "awesome user-interface!" + }, + { + "user": "OpenID User", + "date": "2012-11-05", + "text": "Extremely quick and efficient. Great for renaming anime, too - I was very impressed at Filebot's ability to consistently rename anime using AniDB. A must for keeping a large collection clean!" + }, + { + "user": "mark", + "date": "2012-03-25", + "text": "one of the most liked \"must have\" programs i use. much thanks to author.!" + }, + { + "user": "Amit Singhal", + "date": "2010-05-23", + "text": "one of the best tv-ep renamers out there! kudos! to the author, rednoah" + }, + { + "user": "Max", + "date": "2012-11-27", + "text": "Awesome project! Thanks ;)" + }, + { + "user": "Pope Michelle", + "date": "2012-11-18", + "text": "I use this software. Thank you for your work." + }, + { + "user": "Ryan", + "date": "2012-11-09", + "text": "fast download and works, recommended." + }, + { + "user": "Tolentino Lloyd", + "date": "2012-10-22", + "text": "Great software, thank you." + }, + { + "user": "ryan peck", + "date": "2012-09-15", + "text": "good work" + }, + { + "user": "Zomazi", + "date": "2012-09-03", + "text": "Great tool and getting better!" + }, + { + "user": "Ed Doran", + "date": "2012-08-25", + "text": "A must use tool. Really simplifies watching my favorite movies" + }, + { + "user": "Kostas", + "date": "2012-08-16", + "text": "Great job! Thank you!" + }, + { + "user": "Diana Cate", + "date": "2012-05-18", + "text": "Nice work ! Great project." + }, + { + "user": "Gillardino Boccacio", + "date": "2012-05-12", + "text": "indispensable tool for people with a large library of videos. Through this program, I was able to restore order in films and serials. Thank you!" + }, + { + "user": "wkunes", + "date": "2012-05-07", + "text": "Great tool and getting better!" + }, + { + "user": "Milos Kaurin", + "date": "2012-04-14", + "text": "One of the best (if not the best) multiplatform episode renamer/subtitle downloader" + }, + { + "user": "Jackson", + "date": "2012-03-26", + "text": "Stable and works." + }, + { + "user": "lakis koulourakis", + "date": "2011-02-18", + "text": "best app on series renaming i could find" + } +] \ No newline at end of file diff --git a/website/reviews.php b/website/reviews.php new file mode 100644 index 00000000..7aa5f375 --- /dev/null +++ b/website/reviews.php @@ -0,0 +1,48 @@ + + + Reviews + + + + + + + +
Write a review for FileBot at SourceForge.net
+ +
+
+ +
+
+

Posted by user ?> on date ?>

+

text ?>

+
+
+ + +