Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch_feed_by_username giving error: 'YouTubeVideoEntry' object has no attribute 'video_id' #2

Open
ghost opened this issue May 27, 2013 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented May 27, 2013

Here's my effort:

def video_list(request, username=None):

   # trying to lists all user uploaded videos in my channel 

 # If user is not authenticated and username is None, raise an error
if username is None and not request.user.is_authenticated():

    from django.http import HttpResponse
    return HttpResponse404

# loop through the videos of the user
api = Api()
api.authenticate()    
videos = api.fetch_feed_by_username (username='mychannelname')
video_params = []

for video in videos.entry:   # omitting entry gives error "...object not iterable"        
    video_params.append(_video_params(request, video.video_id))

return render_to_response(
    "django_youtube/videos.html",
    {"video_params": video_params},
    context_instance=RequestContext(request)
)

what could I be doing wrong?

@ghost ghost assigned laplacesdemon May 27, 2013
@laplacesdemon
Copy link
Owner

It seems that the problem is in fetch_feed_by_username api method. I'll try to fix it whenever I can.

@ghost
Copy link
Author

ghost commented May 27, 2013

shot Lap. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant