There are no complete ways of importing all YouTube gdata api information in a flexible way. This feature does that as it doesnt provide any custom code, it is a clean and simple feature taking advantage of the excellent feeds and feeds_jsonpath_parser.
This feature will check for all necessary dependencies required to import ALL information provided by the jsonc format of the YouTube gdata API, from any of the video feeds (user favorites/uploads, all the YouTube standard video feeds or a specific playlist) as supported and shown in the YouTube json responses. The json responses tool can also be used for assisting you in getting the right url when building your feeds.
The feature will install two new content types with all associated fields (YouTube Importer and YouTube Video) and one Feeds Importer (YT Importer).
The feature has some dependencies:
- date
- features
- feeds
- feeds_jsonpath_parser
- feeds_tamper
- job_scheduler
To use, just simply create a new YouTube Importer node with the jsonc feed you grabbed from the json responses tool. Periodic import/update is set to off by default and YouTube only allow 50 items per feed. Create more nodes using the start-index feature of gdata api to import more than 50.
You can see my original blog post on the feature here and a live demo of the end result here.
Link to sandbox: http://drupal.org/sandbox/7wonders/1354216
Git clone: git clone --branch master 7wonders@git.drupal.org:sandbox/7wonders/1354216.git
Drupal version: 7.x
Comments
Comment #1
patrickd commentedIt appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master branch:
This automated report was generated with PAReview.sh, your friendly project application review script. Go and review some other project applications, so we can get back to yours sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #2
7wonders commentedAll changes have been made and 7.x-1.x branch has been added.
Comment #3
patrickd commentedYou should switch back to 'needs review' after you fixed all issues.
Comment #4
7wonders commentedShortened README.txt to 80 character lines also.
Comment #5
patrickd commentedReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. Go and review some other project applications, so we can get back to yours sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #6
7wonders commentedAll done!
Comment #7
7wonders commentedAny news on this?
Comment #8
mitchell commentedLooks really cool! I'm really glad to see this.
Code export looks to be in order. +1. Please make sure to include the "Features Package" tag in "Module Categories."
Side note: #5 should really be be an issue for Features. ... The joys of generated code!
Btw, if you want to "page" past 50 results, you can use Feeds Crawler to auto_increment the start-index field. It's demo'd in Example Web Scraper, but the docs and code need work.
Comment #9
7wonders commentedThx Mitchell. Module categories now added. Not really experimented with the crawler functionality yet. Will check it out.
Comment #10
klausiThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
Review of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Go and review some other project applications, so we can get back to yours sooner.
Thanks for your contribution, 7wonders! Welcome to the community of project contributors on drupal.org.
I've promoted your feature to a full project: http://drupal.org/project/youtube_importer_feature
Now that this experimental project has been promoted, you'll need to update the URL of your remote repository or reclone it.
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.