After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589829 - Videos Synced to Wrong Folder on Android with Patch
Videos Synced to Wrong Folder on Android with Patch
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - USB Mass Storage
git master
Other Linux
: Normal normal
: 1.x
Assigned To: Gabriel Burt
Gabriel Burt
Depends on:
Blocks:
 
 
Reported: 2009-07-27 03:44 UTC by Jack Deslippe
Modified: 2009-07-30 00:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to sync videos to correct directory in Android (9.39 KB, patch)
2009-07-27 03:46 UTC, Jack Deslippe
needs-work Details | Review
Cleaned Up Patch For Video Directory (8.47 KB, patch)
2009-07-27 19:49 UTC, Jack Deslippe
none Details | Review
Addditional Patch for WebOS Videos/ Directory - Should be used after applying the above patch for Android. (1.39 KB, patch)
2009-07-28 16:12 UTC, Jack Deslippe
none Details | Review
Complete Patch Encompassing all Previous Versions (9.82 KB, patch)
2009-07-28 19:55 UTC, Jack Deslippe
committed Details | Review

Description Jack Deslippe 2009-07-27 03:44:43 UTC
On Android devices, videos are synced to the Music/ folder instead of the Videos/ folder which causes organizational problems and problems with some Android apps.  This patch allows the syncing of videos on mass storage devices to a different folder than the music folder.  On Android, it syncs to the Video/ directory instead of Music/ (This is where Videos are searched for on Android.  For other devices, by default it syncs videos to the AudioFolder/Videos.
Comment 1 Jack Deslippe 2009-07-27 03:46:13 UTC
Created attachment 139263 [details] [review]
Patch to sync videos to correct directory in Android
Comment 2 Bertrand Lorentz 2009-07-27 18:28:47 UTC
Thanks for the patch !

A few nitpicks comments :
1/ There's a whitespace change in docs/Banshee/en/Banshee.Hardware/IDeviceMediaCapabilities.xml, which is certainly unneeded.

2/ The patch adds some commented out code in MassStorageSource.cs (//file_path...), please remove it

3/ Please indent with spaces. I've seen some tabs in the last lines

Sadly, I can't really test this : my mass storage device doesn't do proper videos, and I don't have an Android device :(
Comment 3 Jack Deslippe 2009-07-27 19:49:22 UTC
Created attachment 139313 [details] [review]
Cleaned Up Patch For Video Directory

Thanks for comments.  I cleaned up the patch addressing your issues.
Comment 4 Jack Deslippe 2009-07-28 16:12:51 UTC
Created attachment 139397 [details] [review]
Addditional Patch for WebOS Videos/ Directory - Should be used after applying the above patch for Android.  

Additional Patch for WebOS Videos/ Directory - Should be used after applying the above patch for Android.  After discussion with Jeff Wheeler, it was determined WebOS also has a separate folder for Video.
Comment 5 Jack Deslippe 2009-07-28 19:00:01 UTC
For further evidence that this should be accepted.  I just tested it on my rockbox ipod (with no special video folder) and it worked fine.  Videos were synced to Music/Videos/Album as expected.
Comment 6 Jack Deslippe 2009-07-28 19:55:18 UTC
Created attachment 139421 [details] [review]
Complete Patch Encompassing all Previous Versions

Added a new complete patch containing everything in prevous patches plus suggestions.  Also includes ability to read video_folders from .is_audio_player file.  This should be final version.
Comment 7 Gabriel Burt 2009-07-30 00:15:34 UTC
Thanks Jack, committed.