Commit Graph

92 Commits

Author SHA1 Message Date
David Sansome d99f4032b3 Do case insensitive comparisons on XML namespaces in podcasts. Fixes parsing of the length field in some (most?) podcasts. Fixes #2818. 2014-05-29 21:11:49 +10:00
Krzysztof A. Sobiecki 3339aabf19 Fix crash during adding a new podcast 2014-03-03 17:45:31 +01:00
John Maguire fd183a80ff Merge branch 'coding_style_fixes_and_c++11' of https://github.com/sobkas/Clementine into sobkas-coding_style_fixes_and_c++11
Conflicts:
	src/podcasts/addpodcastbyurl.cpp
	src/podcasts/gpoddersync.cpp
	src/podcasts/podcastinfowidget.cpp
	src/podcasts/podcastupdater.cpp
2014-02-10 15:55:42 +01:00
John Maguire 3323c2d094 Convert all instances of foreach() to a C++11 for
find ext src -name '*.cpp' -exec \
    sed -i -e 's/foreach(\([^,]\+\),/for (\1 :/' {} \;
2014-02-10 14:43:32 +01:00
Krzysztof A. Sobiecki f6941726f9 Use nullptr instead of 0 2014-02-10 14:20:20 +01:00
Krzysztof A. Sobiecki 1d1cc92263 Someone else 2014-02-10 13:51:03 +01:00
Krzysztof A. Sobiecki 6d2cdad286 So here list have hidden 2014-02-09 18:46:59 +01:00
Krzysztof A. Sobiecki d7ff44005e No more 'auto' :( 2014-02-09 17:53:20 +01:00
Krzysztof A. Sobiecki c71782c700 I don't know who put this damn spaces there 2014-02-09 17:07:35 +01:00
Krzysztof A. Sobiecki 22a00da717 Fix all+1 errors reported by cpplint.py 2014-02-07 22:35:28 +01:00
Krzysztof A. Sobiecki 171529c5b6 Fix all errors reported by cpplint.py 2014-02-07 22:35:28 +01:00
John Maguire bebd781fdf Reformat all non-3rd-party C/C++/Objective-C++.
Command line:
find src ext -regex '.*\.\(h\|cpp\|mm\)' -exec clang-format -i
 -style='{BasedOnStyle: Google, DerivePointerBinding: false}' {} \;
2014-02-07 16:34:20 +01:00
John Maguire 90d838ba37 Merge pull request #4182 from sobkas/master
Fix auto download podcasts
2014-02-07 11:56:54 +01:00
Krzysztof A. Sobiecki 30fff5dfc4 Fix automatic podcast episodes downloads 2014-02-06 17:34:17 +01:00
John Maguire 71893e4847 Use nullptr instead of NULL everywhere. 2014-02-06 17:29:59 +01:00
Arnaud Bienner dac137cf11 Remove useless check.
No need to check isNull if you're checking isEmpty (see http://qt-project.org/doc/qt-4.8/qstring.html#distinction-between-null-and-empty-strings "A null string is always empty").
2014-01-31 20:17:26 +01:00
John Maguire 7ddf3aab45 Merge pull request #4145 from sobkas/master
Initial support for "Copy to device" in a podcast section
2014-01-31 04:31:43 -08:00
Krzysztof A. Sobiecki 09d68bf415 Scrub the auto usage, use unique_ptr, use correct types instead of QList 2014-01-28 17:01:14 +01:00
John Maguire 59cb17c08d Change some API URLs to use https. 2014-01-28 12:57:27 +01:00
Krzysztof A. Sobiecki 3a72faba97 Fix errors reported by Cpplint.py 2014-01-28 04:50:00 +01:00
Krzysztof A. Sobiecki 295c5bc087 Make code more readable 2014-01-28 04:33:20 +01:00
Krzysztof A. Sobiecki 20befa439c Add a space 2014-01-28 04:31:06 +01:00
Krzysztof A. Sobiecki 7ea6c027d4 Fix podcasts metadata 2014-01-28 04:16:51 +01:00
Krzysztof A. Sobiecki 655d7e1989 CopyToDeviceSlot is a wrong name 2014-01-27 23:59:38 +01:00
Krzysztof A. Sobiecki b0a97de603 Use more auto in for statements 2014-01-27 23:59:38 +01:00
Krzysztof A. Sobiecki df992a4b4b Use auto in for statements, fix const in SetListened 2014-01-27 23:59:38 +01:00
Krzysztof A. Sobiecki 6ea793f446 Fixed some problems reported by cpplint.py, changed foreach to for in files touched by me mkII 2014-01-27 23:59:38 +01:00
Krzysztof A. Sobiecki f7be18b326 Fixed some problems reported by cpplint.py, changed foreach to for in files touched by me 2014-01-27 23:59:38 +01:00
Krzysztof A. Sobiecki c3e693a785 Whitespaces after if 2014-01-27 23:59:37 +01:00
Krzysztof A. Sobiecki 081f4f721a Introduce an intuitive behaviour in podcasts menu 2014-01-27 23:59:37 +01:00
Krzysztof A. Sobiecki 45ace04b29 More intuitive interface 2014-01-27 23:59:37 +01:00
Krzysztof A. Sobiecki b6c59bd4ca Fix whitespaces, Fix whitespaces, Fix whitespaces 2014-01-27 23:59:37 +01:00
Krzysztof A. Sobiecki 3e27cdf749 Some minor fixes 2014-01-27 23:59:36 +01:00
Krzysztof A. Sobiecki 01635397d4 Fixed podcast copy to device 2014-01-27 23:59:36 +01:00
Krzysztof A. Sobiecki f60327b1d1 Initial 'Copy to device' support for podcasts 2014-01-27 23:59:36 +01:00
John Maguire 2010b7d500 Include sys/time.h required for time_t on FreeBSD. 2014-01-23 17:06:43 +01:00
David Sansome 0ed6703305 Simplify whitespace in podcast titles. Fixes #4052 2013-12-29 14:26:25 +00:00
David Sansome af737057d0 Make it possible to mark all child episodes of a podcast as new/listened. Fixes issue 3565 2013-04-15 22:31:20 +10:00
David Sansome 4f4110c03a Support podcast items that use x-audio/* mime-types, like x-audio/m4a. Fixes issue 3448 2013-02-05 22:22:52 +11:00
John Maguire b41a2b5308 Revert "Try out C++11 strongly typed enums."
This reverts commit 4e74c7af2b.
2012-12-05 09:36:22 +00:00
John Maguire 4e74c7af2b Try out C++11 strongly typed enums. 2012-12-04 16:22:09 +00:00
John Maguire 8171192df5 Port Closure to variadic templates. 2012-11-22 17:19:04 +01:00
John Maguire 606bf71208 Disable automatic conversions to QUrl from strings. 2012-09-26 17:09:13 +02:00
David Sansome 3e410021a5 Add an "Open OPML file" button to the Add Podcast dialog 2012-06-16 22:58:33 +01:00
David Sansome d6a8f4e15c Prepend the episode date to the filename when downloading podcasts, and append a numeric suffix until we find a unique filename.
Fixes issue 2997
2012-06-14 17:07:21 +01:00
David Sansome c1c6aa099b Pass results' QSharedPointers to reply slots instead of bare pointers 2012-03-19 21:17:15 +00:00
David Sansome bb69d7d53a Revert libmygpo-qt revision 8f35be2da45d74c42672d3d787ef65fb8b14d0dd ("Return normal pointers from ApiRequest methods, so they can be used in Clementine's closures, and deleteLater() in a slot connected to their finished() signal doesn't crash"), and do closure connections using the shared pointers 2012-03-19 19:38:40 +00:00
David Sansome 56b9546744 Assume URLs in podcast RSS feeds are already URL encoded 2012-03-15 16:36:25 +00:00
David Sansome 096b90716d Fix a compile error with Clang 2012-03-12 21:11:33 +00:00
David Sansome 5327b72f0b Implement the "Delete after x days" feature for listened podcasts. 2012-03-12 19:35:47 +00:00